Error standardization
Across the board, we would like Aerie to return 200 status codes for all requests that don't result in an internal server error.
We want to make sure that the responses are formatted in a way that Hasura understands - we want to eliminate the "message" field was not present error message.
Follow up work would be to make sure that we do not throw internal server errors for situations that a user can fix. This means taking a hard look at all places where we
throw new Error(...). A possible outcome might be to replace usages ofErrorwith a subtype ofRuntimeException, or (shudder) catch Error in the merlin bindings, which would allow us to cleanly report the error.
For reference, here is where the UI is doing error catching for Hasura requests: https://github.com/NASA-AMMOS/aerie-ui/blob/90d4fe8953d6274a9c85a3a1049ba548f267da18/src/utilities/requests.ts#L77