Error message

On this page:


<txp:error_message />

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


This tag has no attributes.


Example 1: Display error information

    <txp:error_status />
    <txp:error_message />

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

Other tags used: error_status.

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