UNPKG

sails

Version:

API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)

10 lines (5 loc) 592 B
# views/500.ejs This is the default "500: Server Error" 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/500.js` Sails considers a request in a "500: Server Error" state when your app throws a catchable error (not inside of an asynchronous callback). You can also trigger this response from one of your controllers or policies with: `return res.serverError( e );` (where `e` is an optional message, error, or array of errors to include in the response). <docmeta name="displayName" value="500.ejs">