Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#35336 closed defect (bug) (fixed)

Add missing HTTP status codes to wp_header_to_desc

Reported by: kraftbj's profile kraftbj Owned by:
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: HTTP API Keywords:
Focuses: Cc:

Description

There are a number of HTTP statuses codified in RFCs and listed by IANA that are not present in the WordPress list.

Related, but separate, from #35333 (which adds the RFC-about-to-be-published 451).

Added codes:

308 => 'Permanent Redirect', RFC7538
421 => 'Misdirected Request', RFC7540

I am not including the following codes, which are labeled Experimental in the defining RFC5842. I have no objection to adding them, but defaulting to not.

208 => 'Already Reported',
508 => 'Loop Detected',

Lastly, left in 418. :-)

Attachments (1)

35336.diff (644 bytes) - added by kraftbj 8 years ago.
Added 308, 421.

Download all attachments as: .zip

Change History (4)

@kraftbj
8 years ago

Added 308, 421.

#2 @joehoyle
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In [36274]:

Add missing HTTP status code descriptions (specifically 308 and 421.)

Props kraftbj.
Fixes 35336.

(missed # in the Fixes, sorry!)

#3 @swissspidy
8 years ago

  • Milestone changed from Awaiting Review to 4.5
Note: See TracTickets for help on using tickets.