Skip to content

Commit 6bc545f

Browse files
committed
Merge pull request slimphp#1024 from sekjun9878/http-response-status-codes
Add HTTP status codes from new RFCs.
2 parents 7921b19 + 864d0f3 commit 6bc545f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Slim/Http/Response.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class Response implements \ArrayAccess, \Countable, \IteratorAggregate
8585
204 => '204 No Content',
8686
205 => '205 Reset Content',
8787
206 => '206 Partial Content',
88+
226 => '226 IM Used',
8889
//Redirection 3xx
8990
300 => '300 Multiple Choices',
9091
301 => '301 Moved Permanently',
@@ -126,7 +127,10 @@ class Response implements \ArrayAccess, \Countable, \IteratorAggregate
126127
502 => '502 Bad Gateway',
127128
503 => '503 Service Unavailable',
128129
504 => '504 Gateway Timeout',
129-
505 => '505 HTTP Version Not Supported'
130+
505 => '505 HTTP Version Not Supported',
131+
506 => '506 Variant Also Negotiates',
132+
510 => '510 Not Extended',
133+
511 => '511 Network Authentication Required'
130134
);
131135

132136
/**

0 commit comments

Comments
 (0)