Skip to content

Commit 0bd742a

Browse files
committed
minor #35090 Add note about HTTP status code change (yceruto)
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
2 parents 6dc0c38 + 429605b commit 0bd742a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UPGRADE-4.4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ TwigBundle
306306
The new default exception controller will also change the error response content according to
307307
https://tools.ietf.org/html/rfc7807 for `json`, `xml`, `atom` and `txt` formats:
308308

309-
Before:
309+
Before (HTTP status code `200`):
310310
```json
311311
{
312312
"error": {
@@ -316,7 +316,7 @@ TwigBundle
316316
}
317317
```
318318

319-
After:
319+
After (HTTP status code `404`):
320320
```json
321321
{
322322
"title": "Not Found",

0 commit comments

Comments
 (0)