{%- let status_code = error.status_code() -%} {{ status_code.canonical_reason().unwrap_or("Server Error") }}

{{ status_code.canonical_reason().unwrap_or("Error") }}

{%- if status_code == cot::StatusCode::NOT_FOUND -%}

Sorry, the page you are looking for has not been found.

Try checking if the address you provided is correct and do not contain any typos.

{%- elif status_code == cot::StatusCode::METHOD_NOT_ALLOWED -%}

Sorry, this endpoint does not support the requested HTTP method.

{%- elif status_code.is_client_error() -%}

An error occurred while trying to process your request.

{%- else -%}

Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are a user, please report this to the website administrator. If you are the website administrator, please look in the server logs for details.

{%- endif -%}