...
- Navigate to your web site's repository
- Create a new HTML file named
404.html
. You can have this file in your root or in a folder such as/errors
, for example. - Add your cool Page Not Found content in your newly created
404.html
file. - Repeat Steps 2 and 3 for each custom error you want to handle. Aerobatic supports the following error codes: 400, 404, 401, 403, 500
- Either create a
package.json
file or, in your existingpackage.json
, add the following code block. Make sure yourpackage.json
is in the root level of your repository.
...
- Here is a basic example web site that uses the Aerobatic
custom-errors
plugin. http://custom-errors.aerobatic.io/ - The code for this sample app can be found on Bitbucket at https://bitbucket.org/aerobatic/custom-errors/src
Further Documentation
Full documentation on custom errors can be found on 4front.io
which is the open-source project that Aerobatic is built on.
http://4front.io/docs/plugins/custom-errors.html
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...