HTTP 425 Too Early missing text in http_response_code()
Open
Nobody has claimed this yet.
Feature
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
The following code:
<?php
http_response_code( 425 );
The response status header does not include the text "Too Early"
It's missing in https://github.com/php/php-src/blob/master/main/http_status_codes.h#L61
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425
PHP Version
8.3.x
Operating System
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in main/http_status_codes.h at the entry for status 425 and compare it with the issue's http_response_code(425) example and the linked MDN description. Done means the generated response status includes the text "Too Early"; verify the behavior on PHP 8.3.x.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, php
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100