Skip to content

Commit

Permalink
Merge pull request slimphp#1024 from sekjun9878/http-response-status-…
Browse files Browse the repository at this point in the history
…codes

Add HTTP status codes from new RFCs.
  • Loading branch information
codeguy committed Feb 26, 2015
2 parents 7921b19 + 864d0f3 commit 6bc545f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Slim/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Response implements \ArrayAccess, \Countable, \IteratorAggregate
204 => '204 No Content',
205 => '205 Reset Content',
206 => '206 Partial Content',
226 => '226 IM Used',
//Redirection 3xx
300 => '300 Multiple Choices',
301 => '301 Moved Permanently',
Expand Down Expand Up @@ -126,7 +127,10 @@ class Response implements \ArrayAccess, \Countable, \IteratorAggregate
502 => '502 Bad Gateway',
503 => '503 Service Unavailable',
504 => '504 Gateway Timeout',
505 => '505 HTTP Version Not Supported'
505 => '505 HTTP Version Not Supported',
506 => '506 Variant Also Negotiates',
510 => '510 Not Extended',
511 => '511 Network Authentication Required'
);

/**
Expand Down

0 comments on commit 6bc545f

Please sign in to comment.