PPA.HTTP.Errors
index
/home/ods/SF-PPA/homepage/API/PPA/HTTP/Errors.py

# $Id: Errors.py,v 1.1.1.1 2004/04/09 13:18:11 ods Exp $

 
Modules
       
cgi

 
Classes
       
exceptions.Exception
EndOfRequest
ClientError
NotFound
Redirect
Found
MovedPermanently
SeeOther
TemporaryRedirect
ServerError
InternalServerError

 
class ClientError(EndOfRequest)
    
Method resolution order:
ClientError
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, status, message)
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class EndOfRequest(exceptions.Exception)
     Methods defined here:
__init__(self, status=None)
handle(self, request, response)
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class Found(Redirect)
    
Method resolution order:
Found
Redirect
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, uri)

Methods inherited from Redirect:
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InternalServerError(ServerError)
    
Method resolution order:
InternalServerError
ServerError
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, message='The server encountered an internal error and was unable to complete your request.')

Methods inherited from ServerError:
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class MovedPermanently(Redirect)
    
Method resolution order:
MovedPermanently
Redirect
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, uri)

Methods inherited from Redirect:
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class NotFound(ClientError)
    
Method resolution order:
NotFound
ClientError
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self)
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class Redirect(EndOfRequest)
    
Method resolution order:
Redirect
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, uri, status)
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class SeeOther(Redirect)
    
Method resolution order:
SeeOther
Redirect
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, uri)

Methods inherited from Redirect:
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class ServerError(EndOfRequest)
    
Method resolution order:
ServerError
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, status, message)
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class TemporaryRedirect(Redirect)
    
Method resolution order:
TemporaryRedirect
Redirect
EndOfRequest
exceptions.Exception

Methods defined here:
__init__(self, uri)

Methods inherited from Redirect:
handle(self, request, response)

Methods inherited from EndOfRequest:
sendBody(self, response, message)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
Data
        statusCodes = {100: 'Continue', 101: 'Switching Protocols', 200: 'OK', 201: 'Created', 202: 'Accepted', 203: 'Non-Authoritative Information', 204: 'No Content', 205: 'Reset Content', 206: 'Partial Content', 300: 'Multiple Choices', ...}