Nice write up thank you for sharing.
If yes, then I sort of[1] do this for the "status" part of the response, so I can give useful error messages back (e.g. wrong "structure id")
[1] https://github.com/emilburzo/nest-rest/blob/master/src/main/...
Nice write up thank you for sharing.