Permalink
Browse files

Test new status headers

These were previously added while in draft status, but not tested. This adds
testing for those, in addition to updating the link to the new related RFC.
  • Loading branch information...
1 parent 083843d commit 7ce9e116792697955ba32be9e18d67d37513f80b @rmccue committed Oct 25, 2012
@@ -2,14 +2,14 @@
/**
* Exception for 428 Precondition Required responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 428 Precondition Required responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP {
@@ -2,14 +2,14 @@
/**
* Exception for 431 Request Header Fields Too Large responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 431 Request Header Fields Too Large responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_431 extends Requests_Exception_HTTP {
@@ -2,14 +2,14 @@
/**
* Exception for 511 Network Authentication Required responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 511 Network Authentication Required responses
*
- * @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
+ * @see http://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP {
View
@@ -221,12 +221,16 @@ public static function statusCodeSuccessProvider() {
array(416, false),
array(417, false),
array(418, false), // RFC 2324
+ array(428, false), // RFC 6585
+ array(429, false), // RFC 6585
+ array(431, false), // RFC 6585
array(500, false),
array(501, false),
array(502, false),
array(503, false),
array(504, false),
array(505, false),
+ array(511, false), // RFC 6585
);
}

0 comments on commit 7ce9e11

Please sign in to comment.