- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (-4)
- 4.1.8 (0)
- 4.2.1 (38)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (2)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (2)
- 7.1.3.4 (0)
- What's this?
When called, this middleware renders an error page. By default if an HTML response is expected it will render static error pages from the `/public` directory. For example when this middleware receives a 500 response it will render the template found in `/public/500.html`. If an internationalized locale is set, this middleware will attempt to render the template in `/public/500.<locale>.html`. If an internationalized template is not found it will fall back on `/public/500.html`.
When a request with a content type other than HTML is made, this middleware will attempt to convert error information into the appropriate response type.