Skip to content

Error Templates

Jason edited this page Jul 19, 2014 · 1 revision

By default Lazo ships with a few standard error templates. Lazo will render the template name for the associated error code. If you would like custom error templates then you can them to your application’s app/views directory using the error code for the filename plus the extension “hbs”, e.g., the file name for internal server errors would be “500.hbs”. Lazo uses Handlebars to render error templates. The following properties are available in an error template's rendering context.

  • statusCode the error code for the error
  • error the type of error
  • message the error message