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
This PR was merged into the 4.4 branch.
Discussion
----------
Add note about HTTP status code change
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | Fix#34731
| License | MIT
| Doc PR | -
> https://tools.ietf.org/html/rfc7807
> The "status" member, if present, is only advisory; it conveys the
HTTP status code used for the convenience of the consumer.
**Generators MUST use the same status code in the actual HTTP response,**
to assure that generic HTTP software that does not understand this
format still behaves correctly.
Commits
-------
429605b add note about HTTP status code change
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 4.4 & 5.0
Description
While working in FriendsOfSymfony/FOSRestBundle#2036 I realized that in 4.4 we've changed the status code of the error response.
from
200
:symfony/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php
Line 75 in 9b658ed
to
$exception->getStatusCode()
:symfony/src/Symfony/Component/HttpKernel/Controller/ErrorController.php
Line 43 in 9b658ed
and I wondering what is the right approach here?
I'm not sure at this point if there is some spec/doc that talk about it.
wdyt?
The text was updated successfully, but these errors were encountered: