This repository was archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Add status codes: 226, 308, 444, 499, 510, 599 #110
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ class Response extends AbstractMessage implements ResponseInterface | |
const STATUS_CODE_206 = 206; | ||
const STATUS_CODE_207 = 207; | ||
const STATUS_CODE_208 = 208; | ||
const STATUS_CODE_226 = 226; | ||
const STATUS_CODE_300 = 300; | ||
const STATUS_CODE_301 = 301; | ||
const STATUS_CODE_302 = 302; | ||
|
@@ -43,6 +44,7 @@ class Response extends AbstractMessage implements ResponseInterface | |
const STATUS_CODE_305 = 305; | ||
const STATUS_CODE_306 = 306; | ||
const STATUS_CODE_307 = 307; | ||
const STATUS_CODE_308 = 308; | ||
const STATUS_CODE_400 = 400; | ||
const STATUS_CODE_401 = 401; | ||
const STATUS_CODE_402 = 402; | ||
|
@@ -71,6 +73,8 @@ class Response extends AbstractMessage implements ResponseInterface | |
const STATUS_CODE_429 = 429; | ||
const STATUS_CODE_431 = 431; | ||
const STATUS_CODE_451 = 451; | ||
const STATUS_CODE_444 = 444; | ||
const STATUS_CODE_499 = 499; | ||
const STATUS_CODE_500 = 500; | ||
const STATUS_CODE_501 = 501; | ||
const STATUS_CODE_502 = 502; | ||
|
@@ -80,7 +84,9 @@ class Response extends AbstractMessage implements ResponseInterface | |
const STATUS_CODE_506 = 506; | ||
const STATUS_CODE_507 = 507; | ||
const STATUS_CODE_508 = 508; | ||
const STATUS_CODE_510 = 510; | ||
const STATUS_CODE_511 = 511; | ||
const STATUS_CODE_599 = 599; | ||
/**#@-*/ | ||
|
||
/** | ||
|
@@ -101,6 +107,7 @@ class Response extends AbstractMessage implements ResponseInterface | |
206 => 'Partial Content', | ||
207 => 'Multi-status', | ||
208 => 'Already Reported', | ||
226 => 'IM Used', | ||
// REDIRECTION CODES | ||
300 => 'Multiple Choices', | ||
301 => 'Moved Permanently', | ||
|
@@ -110,6 +117,7 @@ class Response extends AbstractMessage implements ResponseInterface | |
305 => 'Use Proxy', | ||
306 => 'Switch Proxy', // Deprecated | ||
307 => 'Temporary Redirect', | ||
308 => 'Permanent Redirect', | ||
// CLIENT ERROR | ||
400 => 'Bad Request', | ||
401 => 'Unauthorized', | ||
|
@@ -138,7 +146,9 @@ class Response extends AbstractMessage implements ResponseInterface | |
428 => 'Precondition Required', | ||
429 => 'Too Many Requests', | ||
431 => 'Request Header Fields Too Large', | ||
444 => 'Connection Closed Without Response', | ||
451 => 'Unavailable For Legal Reasons', | ||
499 => 'Client Closed Request', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't appear to be "official"? Not sure what the stance is on this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exists in diactoros/response |
||
// SERVER ERROR | ||
500 => 'Internal Server Error', | ||
501 => 'Not Implemented', | ||
|
@@ -149,7 +159,9 @@ class Response extends AbstractMessage implements ResponseInterface | |
506 => 'Variant Also Negotiates', | ||
507 => 'Insufficient Storage', | ||
508 => 'Loop Detected', | ||
510 => 'Not Extended', | ||
511 => 'Network Authentication Required', | ||
599 => 'Network Connect Timeout Error', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't appear to be "official"? Not sure what the stance is on this. |
||
]; | ||
|
||
/** | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't appear to be "official"? Not sure what the stance is on this.
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#nginx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exists in diactoros/response