The errorPages module
The errorPages class defined various error pages which are used
in the request handler to provide data in the event of specific errors.
The Keys class
-
class pyamp.web.http.errorPages.Keys
The Keys class defines constants that are used as keys to
access certain dictionary values.
-
ErrorMessage
The key for the entry containing the error message.
The HtmlPage class
-
class pyamp.web.http.errorPages.HtmlPage
The HtmlPage class provides a base class that returns
a page containing text/html content.
Check that all the required properties are defined.
-
contentType
Define the content type for the HtmlPage.
The NotFoundPage class
-
class pyamp.web.http.errorPages.NotFoundPage[source]
The NotFoundPage is displayed in the event that a requested page was
not found.
Check that all the required properties are defined.
-
errorCodes
Define the list of error codes which will display this page.
The InternalServerErrorPage class
-
class pyamp.web.http.errorPages.InternalServerErrorPage[source]
The InternalServerErrorPage is displayed in the event that an
internal server error is encountered during processing. It provides
the ability to display the encountered error to the user.
Check that all the required properties are defined.
-
errorCodes
Define the list of error codes which will display this page.
The StatusCodes class
-
class pyamp.web.http.errorPages.StatusCodes
The StatusCodes class contains constants pertaining to
HTTP status codes.
-
FileNotFound
The file not found status code.
-
Found
The found status code.
-
InternalServerError
The internal server error status code.
-
MovedPermanently
The moved permanently status code.
-
OK
The OK status code.