Skip to content
Myr

Merge of maxcountryman

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 9f55f50 · Browse files · 3 files+12 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+12 added−3 removed

  • other:+12 added−3 removed

3 files+12 added−3 removed

modified:requests/exceptions.py+1 added
12 unmodified lines
13 request."""1415class HTTPError(RequestException):16 """An HTTP error occurred."""17 response = None1819class ConnectionError(RequestException):20 """A Connection error occurred."""21
11 unmodified lines
modified:requests/models.py+10 added-3 removed
798 unmodified lines
799 if self.error:800 raise self.error801802 if (self.status_code >= 300) and (self.status_code < 400) and not allow_redirects:803 raise HTTPError('%s Redirection' % self.status_code)803 http_error = HTTPError('%s Redirection' % self.status_code)804 http_error.response = self805 raise http_error806807 elif (self.status_code >= 400) and (self.status_code < 500):806 raise HTTPError('%s Client Error' % self.status_code)808 http_error = HTTPError('%s Client Error' % self.status_code)809 http_error.response = self810 raise http_error811812813 elif (self.status_code >= 500) and (self.status_code < 600):809 raise HTTPError('%s Server Error' % self.status_code)814 http_error = HTTPError('%s Server Error' % self.status_code)815 http_error.response = self816 raise http_error
modified:AUTHORS.rst+1 added
85 unmodified lines
86- Honza Javorek87- Brendan Maguire <maguire.brendan@gmail.com>88- Chris Dary89- Danver Braganza <danverbraganza@gmail.com>90- Max Countryman