15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
20
class HTTPError(Exception):
19
21
'''A base class for all HTTP errors.'''
27
23
class BadRequest(HTTPError):
37
26
class Forbidden(HTTPError):
42
29
class NotFound(HTTPError):
47
32
class MethodNotAllowed(HTTPError):
48
def __init__(self, allowed, *args, **kwargs):