Skip to content

Commit

Permalink
Merge 12ff101 into 124ddeb
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Dec 21, 2015
2 parents 124ddeb + 12ff101 commit c6996f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Httpstatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Httpstatus implements Countable, IteratorAggregate
428 => 'Precondition Required',
429 => 'Too Many Requests',
431 => 'Request Header Fields Too Large',
451 => 'Unavailable For Legal Reasons',
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
Expand Down
1 change: 1 addition & 0 deletions src/Httpstatuscodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface Httpstatuscodes
const HTTP_PRECONDITION_REQUIRED = 428; // RFC6585
const HTTP_TOO_MANY_REQUESTS = 429; // RFC6585
const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585
const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
const HTTP_INTERNAL_SERVER_ERROR = 500;
const HTTP_NOT_IMPLEMENTED = 501;
const HTTP_BAD_GATEWAY = 502;
Expand Down
4 changes: 3 additions & 1 deletion tests/data/http-status-codes-1.csv
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ Value,Description,Reference
429,Too Many Requests,[RFC6585]
430,Unassigned,
431,Request Header Fields Too Large,[RFC6585]
432-499,Unassigned,
432-450,Unassigned,
451,Unavailable For Legal Reasons,[TBA]
452-499,Unassigned,
500,Internal Server Error,"[RFC7231, Section 6.6.1]"
501,Not Implemented,"[RFC7231, Section 6.6.2]"
502,Bad Gateway,"[RFC7231, Section 6.6.3]"
Expand Down

0 comments on commit c6996f3

Please sign in to comment.