Opened 11 years ago
Closed 11 years ago
#35333 closed enhancement (fixed)
Add support for 451 http status code.
| Reported by: | andizer | Owned by: | joehoyle |
|---|---|---|---|
| Priority: | low | Milestone: | 4.5 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description
It would be nice to add support for the newly 451 (HTTP 451 Unavailable For Legal Reasons) http response code.
I recently used the status_header function and I saw this response code was missing.
See https://en.wikipedia.org/wiki/HTTP_451 for more details about the response code.
Attachments (1)
Change History (8)
#1
@
11 years ago
- Component General → HTTP API
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
#2
@
11 years ago
It isn't yet final (though very very close): https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/ Personally, I'm good with adding it now, but is there a good reason to wait?
#3
@
11 years ago
- Milestone Future Release → 4.5
- Priority normal → low
- Type feature request → enhancement
This is fine to go in. We support other statuses whose RFCs are technically still in the proposal stage (see #16914).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Great idea @andizer, and welcome to WordPress Trac :)
Would you like to submit a patch for this?