- use an interceptor to hand errors in the rest endpoints
- it is assured that the error message in the 500 response has the same structure as it is now
- the RestResponseUtil#buildServerErrorResponse methods should not be used anymore
Right now we use the RestResponseUtil to handle errors. However, we have to call the method in every endpoint where an error can occur and also enunicate can't create proper documentation about the responses.