Exceptions in the application code result in a 500 response, but the default response format for that isn't a JSON. We should override that handler so that it serves JSONs even in that situation.
The response should maybe also contain some form of unique ID which will then be referenced in the logs for this error.
Exceptions in the application code result in a 500 response, but the default response format for that isn't a JSON. We should override that handler so that it serves JSONs even in that situation.
The response should maybe also contain some form of unique ID which will then be referenced in the logs for this error.