Back to Sails

views/404.ejs

docs/anatomy/views/404.ejs.md

12.12.2000501 B
Original Source

views/404.ejs

This is the default "404: Not Found" page. User agents that don't "Accept" HTML will see a JSON version instead. You can customize the control logic for your needs in config/404.js.

Sails considers a request to be in a "404: Not Found" state when a user requests a URL which doesn't match any of your app's routes or blueprints. You can also trigger this response from one of your controllers or policies with: return res.notFound();

<docmeta name="displayName" value="404.ejs">