FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 703 forks source link

Content-Type for json when flatten_exception_format == 'rfc7807' #2192

Closed a-menshchikov closed 4 years ago

a-menshchikov commented 4 years ago

According https://tools.ietf.org/html/rfc7807#section-6.1 there will be more correct to set Content-Type header to application/problem+json when using flatten_exception_format: 'rfc7807'.

xabbuh commented 4 years ago

see #2210