Beispiel #1
0
 def __init__(self, **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.CREATED, **kwargs))
Beispiel #2
0
 def __init__(self, body="", **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.INTERNAL_SERVER_ERROR, **kwargs), body=body)
Beispiel #3
0
 def __init__(self, allowed, body="", **kwargs):
     HTTPResponse.__init__(
         self,
         HTTPPreamble(status_code=httplib.METHOD_NOT_ALLOWED, headers={"Allowed": allowed}, **kwargs),
         body=body,
     )
Beispiel #4
0
 def __init__(self, body="", **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.NOT_IMPLEMENTED, **kwargs), body=body)
Beispiel #5
0
 def __init__(self, body="", **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.FORBIDDEN, **kwargs), body=body)
Beispiel #6
0
 def __init__(self, body="", **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.UNAUTHORIZED, **kwargs), body=body)
Beispiel #7
0
 def __init__(self, body="", **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.BAD_REQUEST, **kwargs), body=body)
Beispiel #8
0
 def __init__(self, location, body="", **kwargs):
     HTTPResponse.__init__(
         self, HTTPPreamble(status_code=httplib.FOUND, headers={"Location": location}, **kwargs), body=body
     )
Beispiel #9
0
 def __init__(self, **kwargs):
     HTTPResponse.__init__(self, HTTPPreamble(status_code=httplib.NO_CONTENT, **kwargs))