From ad6a8d53d6ceb22ceb20afb2458b7977e01a9ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20M=C3=B6llerstrand?= Date: Thu, 20 Oct 2011 11:50:27 +0100 Subject: [PATCH 1/2] docs: fix pip-compared-to-easy-install url. --- docs/user/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/install.rst b/docs/user/install.rst index aef598dc..9100ac21 100644 --- a/docs/user/install.rst +++ b/docs/user/install.rst @@ -18,7 +18,7 @@ or, with `easy_install `_:: $ easy_install requests -But, you really `shouldn't do that `_. +But, you really `shouldn't do that `_. From 4f984b0fe66c0d47a9c34dbec1d035c1ac2ed897 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Thu, 20 Oct 2011 17:37:16 +0200 Subject: [PATCH 2/2] New HTTP status codes (draft only). See IETF document at https://tools.ietf.org/html/draft-nottingham-http-new-status-02. --- requests/status_codes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requests/status_codes.py b/requests/status_codes.py index a809de6a..b49c3c13 100644 --- a/requests/status_codes.py +++ b/requests/status_codes.py @@ -56,6 +56,9 @@ _codes = { 424: ('failed_depdendency', 'depdendency'), 425: ('unordered_collection', 'unordered'), 426: ('upgrade_required', 'upgrade'), + 428: ('precondition_required', 'precondition'), + 429: ('too_many_requests', 'too_many'), + 431: ('header_fields_too_large', 'fields_too_large'), 444: ('no_response', 'none'), 449: ('retry_with', 'retry'), 450: ('blocked_by_windows_parental_controls', 'parental_controls'),