Skip to content

Commit

Permalink
Add 451 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 4, 2016
1 parent af65d5e commit f7e7ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Message/BasicResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class BasicResponse extends AbstractMessage implements Response
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 Expand Up @@ -103,7 +104,7 @@ public function __construct(
$code = 200,
array $headers = [],
ReadableStream $stream = null,
$reason = '',
$reason = null,
$protocol = '1.1'
) {
parent::__construct($headers, $stream, $protocol);
Expand Down
1 change: 1 addition & 0 deletions src/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface Response extends Message
const PRECONDITION_REQUIRED = 428;
const TOO_MANY_REQUESTS = 429;
const REQUEST_HEADER_TOO_LARGE = 431;
const UNAVAILABLE_FOR_LEGAL_REASONS = 451;

const INTERNAL_SERVER_ERROR = 500;
const NOT_IMPLEMENTED = 501;
Expand Down

0 comments on commit f7e7ffa

Please sign in to comment.