Error status

On this page:

Syntax

<txp:error_status />

The error_status tag is a single tag that Textpattern will replace with the error status as set by the server. Should be used in error_xxx or error_default Textpattern Page templates.

Attributes

This tag has no attributes.

Examples

Example 1: Display error information

<h1>
    <txp:error_status />
</h1>
<p>
    <txp:error_message />
</p>

With the tags arranged like this (as they are in the error_default page template), they display the error status code as a header and the relevant server message beneath it, usually to indicate to the visitor that something went wrong.

Other tags used: error_message.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.