summaryrefslogtreecommitdiff
path: root/requests/status_codes.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix formatting of status code examplelzutao2019-09-171-7/+10
|
* [fix] fix failing doctests in requests/*aless102019-02-171-1/+1
| | | | | [add] add --doctest-modules in pytest.ini file as addopts [add] add myself to AUTHORS
* Fix an invalid escape sequenceChih-Hsuan Yen2018-07-091-1/+1
|
* Do not alter status_codes docstring if it is NoneMartin Durant2018-06-121-1/+2
| | | | With PYTHONOPTIMIZE=2, the current code breaks with TypeError.
* Add documentation for available status codesZane Bitter2017-11-211-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix syntax errorMarcos Dione2017-02-071-1/+1
| | | I can only wonder how I managed to write it like that...
* Proper version, no bugs, shorter.Marcos Dione2017-02-061-1/+1
|
* do not convert /o\ into /O\Marcos Dione2017-02-061-1/+1
|
* adding in pep8 fixesNate Prewitt2016-07-201-1/+1
|
* Add 421 Misdirected Request.Cory Benfield2016-04-081-0/+1
|
* Add 511 Network Authentication Required status code to dict of status codesAnn Paul2015-10-261-0/+1
|
* Remove redundant function call list when iterating over status codesUsman Ehtesham Gul2015-09-101-1/+1
|
* Re-add resume to not break existing appsEric L Frederich2014-06-111-1/+2
| | | | as requested by Cory Benfield
* rename resume/resume_incomplete to permanent_redirect according to rfc7238Eric L Frederich2014-06-111-1/+1
| | | | | Use temporary_redirect intead of temporary_moved to make the words line up nicely ;-)
* Set 208 status_code to "already_reported"Philippe Ndiaye2013-07-131-0/+1
|
* Changed the "im_used" informational status code for the value given by IANA ↵Philippe Ndiaye2013-07-131-1/+1
| | | | | (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
* support for draft-tbray-http-legally-restricted-status-02Kenneth Reitz2013-04-151-0/+1
| | | | | http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat us/?include_text=1
* adding UTF-8 status codesMax Countryman2012-11-081-2/+2
|
* Whitespace fixes following PEP8.Locker5372012-08-161-1/+1
|
* blahKenneth Reitz2012-01-231-1/+1
|
* Merge remote-tracking branch 'origin/develop' into developKenneth Reitz2011-10-201-0/+3
|\
| * New HTTP status codes (draft only).Zbigniew Siciarz2011-10-201-0/+3
| | | | | | | | | | See IETF document at https://tools.ietf.org/html/draft-nottingham-http-new-status-02.
* | Some Doc and doctoring fixes by the Speling Poleece.travis2011-10-191-2/+2
|/
* 303 status codeKenneth Reitz2011-08-191-1/+1
|
* As proposed by @davidbgk this is only consistent with \o/ :)Armin Ronacher2011-08-171-3/+3
|
* Fixed misc spelling mistakes.alopatin2011-08-151-2/+2
|
* status blocksKenneth Reitz2011-08-141-0/+8
|
* status codes fixKenneth Reitz2011-08-141-2/+2
|
* \o/Kenneth Reitz2011-08-131-2/+3
|
* status_codes lookup dictKenneth Reitz2011-08-131-0/+74