Open weierophinney opened 4 years ago
The final idea is all errors returned from any application layer (PHP, ZF2, zf-rest, user resource) should have the same response type.
Originally posted by @Maks3w at https://github.com/zfcampus/zf-rest/issues/72#issuecomment-93675286
+1 ... this seems to be a good idea .... is there any progress/comment, if this will be considered?
Originally posted by @jg-development at https://github.com/zfcampus/zf-rest/issues/72#issuecomment-134669864
Will be nice if the response of a global error thrown by the library respect the media type provided by
Accept
header.This is when error is thrown to a browser (
Accept: text/html
) error is rendered like now but if it's thrown to the API client (Accept: application/*json
) returnapplication/problem+json
response.Originally posted by @Maks3w at https://github.com/zfcampus/zf-rest/issues/72