Request respects format
right at this point i am thinking about a REST Service.
And i asked myself: Shouldn't also exceptions/notfound/etc also returned
in the requested format (f.e. xml/json) by default? Maybe not all formats but
the most needed, json f.e.?
Found something where this happens by changing the notFoundController through yaml.
But is a systemwide change realy needed here or shouldnt it be possible to configure this
how would you deliver notFound in a REST Service and also Exceptions etc.
is it a good idea to deliver html exceptions/notfound to the rest client?
Updated by Bastian Waidelich over 7 years ago
- Category set to Error
- Status changed from New to Closed
- Assignee set to Bastian Waidelich
I'm closing this as duplicate of #43569 even though this one was older (I didn't see it before) because the other issue is bound to the "REST work package".
Please keep the feedback coming in #43569 - I'm still not perfectly sure what a good JSON/XML error could look like, especially as you didn't want to render the message of an exception (in production context)