Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added HTTP status codes from

  • Loading branch information...
commit b6cee3678e557d56762e5f877dc475eaefb33ce6 1 parent 1d2811e
@evert evert authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Sabre/HTTP/Response.php
View
4 lib/Sabre/HTTP/Response.php
@@ -64,6 +64,9 @@ public function getStatusMessage($code) {
423 => 'Locked', // RFC 4918
424 => 'Failed Dependency', // RFC 4918
426 => 'Upgrade required',
+ 428 => 'Precondition required', // draft-nottingham-http-new-status
+ 429 => 'Too Many Requests', // draft-nottingham-http-new-status
+ 431 => 'Request Header Fields Too Large', // draft-nottingham-http-new-status
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
@@ -75,6 +78,7 @@ public function getStatusMessage($code) {
508 => 'Loop Detected', // RFC 5842
509 => 'Bandwidth Limit Exceeded', // non-standard
510 => 'Not extended',
+ 511 => 'Network Authentication Required', // draft-nottingham-http-new-status
);
return 'HTTP/1.1 ' . $code . ' ' . $msg[$code];
Please sign in to comment.
Something went wrong with that request. Please try again.