sails
Version:
API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)
8 lines (4 loc) • 502 B
Markdown
# 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">