OutSCIRT

About
Documentation
Downloads

O__pageReponse

Purpose: Meant to act on HTTP response status codes, it delivers a standardized set of actions to the end user, typically in the form of a message. It responds to codes 403, 404, and 503.

Type: Server-side function

Inputs:

  • $O__code: The response code to act on.

Outputs: Depending on the code provided, a specific message will be presented to the end user and the page will terminate.

Use Case: O__pageResponse is meant to standardize the output of typical experiences, such as stating when a user does not have the right permissions, when a page is not found, and when the application is undergoing maintenance.

Examples:

  • Deliver a 404 "page not found" response: O__pageResponse("404");

Version Documented: 20181023