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