You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is an error page which I can define for unexpected errors in the frontend. Is there such thing for APIs? Because if an API will throw an error, I get the error page back. It would be great if we can use something like content negotiation for errors. With this an API could respond with an error in the same format as it was send in the request. If I send a JSON request to an API, then the API should respond wit an error in JSON format.
Maybe there is such functionality already implemented?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently there is an error page which I can define for unexpected errors in the frontend. Is there such thing for APIs? Because if an API will throw an error, I get the error page back. It would be great if we can use something like content negotiation for errors. With this an API could respond with an error in the same format as it was send in the request. If I send a JSON request to an API, then the API should respond wit an error in JSON format.
Maybe there is such functionality already implemented?
Beta Was this translation helpful? Give feedback.
All reactions