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