php / php/php-src

HTTP 425 Too Early missing text in http_response_code()

Open
#16,068 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.