Chih-Hsuan Yen
b1a360c2f1
Fix an invalid escape sequence
2018-07-09 01:10:00 +08:00
Martin Durant
8031ec76b8
Do not alter status_codes docstring if it is None
...
With PYTHONOPTIMIZE=2, the current code breaks with TypeError.
2018-06-12 17:52:50 -04:00
Zane Bitter
19919b44c4
Add documentation for available status codes
...
There was no way to determine what actual names were available outside
of looking at the source code. They were not listed in the documentation
or accessible through the interactive help.
In addition, doing `pydoc requests.status_codes` displayed some pretty
unhelpful information - the utf-8 encoding string was included in the
module name, there was no description, and internal variables used for
initialisation leaked into the module scope:
DATA
code = 511
codes = <lookup 'status_codes'>
title = 'network_authentication'
titles = ('network_authentication_required', 'network_auth', ...
This change prevents the internal variables from leaking, adds a
docstring (which has the side-effect of correcting the module name), and
appends information on the allowed status code names to the docstring
when the module is initialised.
The improved module documentation is then used in the API documentation
to provide another easy reference to the complete list of status codes.
2017-11-21 16:11:34 -05:00
Marcos Dione
571d2c2cd7
Fix syntax error
...
I can only wonder how I managed to write it like that...
2017-02-07 16:57:17 +01:00
Marcos Dione
b00d8bf474
Proper version, no bugs, shorter.
2017-02-06 21:44:28 +01:00
Marcos Dione
593734b770
do not convert /o\ into /O\
2017-02-06 17:27:16 +01:00
Nate Prewitt
2d4a89f5dc
adding in pep8 fixes
2016-07-20 10:30:08 -06:00
Cory Benfield
831d8e0a1e
Add 421 Misdirected Request.
2016-04-08 08:23:46 +01:00
Ann Paul
7dd94941c8
Add 511 Network Authentication Required status code to dict of status codes
2015-10-26 08:42:37 -07:00
Usman Ehtesham Gul
96e8e8b92f
Remove redundant function call list when iterating over status codes
2015-09-10 12:59:39 -04:00
Eric L Frederich
da3178f377
Re-add resume to not break existing apps
...
as requested by Cory Benfield
2014-06-11 13:27:36 -04:00
Eric L Frederich
ec3a2e6f04
rename resume/resume_incomplete to permanent_redirect according to rfc7238
...
Use temporary_redirect intead of temporary_moved to make the words
line up nicely ;-)
2014-06-11 11:08:10 -04:00
Philippe Ndiaye
18a736fbe6
Set 208 status_code to "already_reported"
2013-07-13 11:08:01 +02:00
Philippe Ndiaye
7bdf37bc27
Changed the "im_used" informational status code for the value given by IANA (226)
...
See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2013-07-13 09:55:50 +02:00
Kenneth Reitz
d13bf9f113
support for draft-tbray-http-legally-restricted-status-02
...
http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat
us/?include_text=1
2013-04-15 22:47:20 -04:00
Max Countryman
32aa3eb012
adding UTF-8 status codes
2012-11-08 14:30:13 -08:00
Locker537
42d0a2169e
Whitespace fixes following PEP8.
2012-08-16 17:38:35 -04:00
Kenneth Reitz
b0e2e4f284
blah
2012-01-23 00:15:25 -05:00
Kenneth Reitz
8d0e03ce41
Merge remote-tracking branch 'origin/develop' into develop
2011-10-20 11:42:00 -04:00
Zbigniew Siciarz
4f984b0fe6
New HTTP status codes (draft only).
...
See IETF document at
https://tools.ietf.org/html/draft-nottingham-http-new-status-02 .
2011-10-20 17:37:16 +02:00
travis
055f7c1eb6
Some Doc and doctoring fixes by the Speling Poleece.
2011-10-19 10:00:13 -05:00
Kenneth Reitz
d9a349c1a1
303 status code
2011-08-19 20:12:16 -04:00
Armin Ronacher
91e75f7215
As proposed by @davidbgk this is only consistent with \o/ :)
2011-08-17 13:40:29 +03:00
alopatin
08a821381a
Fixed misc spelling mistakes.
2011-08-15 22:53:22 -03:00
Kenneth Reitz
1361506ae6
status blocks
2011-08-14 15:44:03 -04:00
Kenneth Reitz
ce1945c780
status codes fix
2011-08-14 10:43:02 -04:00
Kenneth Reitz
47378164ef
\o/
2011-08-13 14:55:41 -04:00
Kenneth Reitz
9469b4bb69
status_codes lookup dict
2011-08-13 14:50:59 -04:00