Answers.Body: <p>Yes — an <code>error.twig</code> template in your error templates directory serves as a catch-all template when a more specific template (e.g. <code>404.twig</code>) can't be found, or when the system throws a general error that doesn't have a status code attached.</p>
  
  <p>(You can customize the path prefix for error templates by changing the <code>errorTemplatePrefix</code> setting in the <a href="https://craftcms.com/docs/config-settings">Craft General Config</a>.)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-19T17:32:12.930Z
Answers.Text: It should be noted that error templates do not work in dev mode.
Answers.UserDisplayName: Dario Zadro
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-27T20:46:58.843Z
Answers.LastActivityDate: 2016-03-27T20:46:58.843Z
Answers.UserDisplayName: Michael Rog
Body: <p><strong>Is there a catch all error page template?</strong></p>
  
  <p>I'd like to use <a href="http://http.cat">http://http.cat</a> for my statuses.</p>
  
  <p><em>(originally asked by Bryan Redeagle in <a href="https://craftcms.slack.com/archives/general/p1458942743002729">Craft Slack</a>)</em></p>
  
Tags: <error-templates>
Title: Generic catch-all error template
ThreadText: # Generic catch-all error template
  
  (Asked by: username_0 on 2016-03-27)
  
  **Is there a catch all error page template?**
  
  I'd like to use <http://http.cat> for my statuses.
  
  *(originally asked by Bryan Redeagle in [Craft Slack](https://craftcms.slack.com/archives/general/p1458942743002729))*
  
  **Tags:** error-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-03-27. Score: 5
  
  Yes — an `error.twig` template in your error templates directory serves as a catch-all template when a more specific template (e.g. `404.twig`) can't be found, or when the system throws a general error that doesn't have a status code attached.
  
  (You can customize the path prefix for error templates by changing the `errorTemplatePrefix` setting in the [Craft General Config](https://craftcms.com/docs/config-settings).)
  
  > **Comments:**
  > **username_1**: It should be noted that error templates do not work in dev mode.  
  
  ---
  
  