mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
45 lines
864 B
JavaScript
45 lines
864 B
JavaScript
'use strict';
|
|
/**
|
|
* error controller
|
|
*/
|
|
module.exports = think.controller({
|
|
/**
|
|
* [_400Action description]
|
|
* @param {Object} self []
|
|
* @return {Promise} []
|
|
*/
|
|
_400Action: function(self){
|
|
self.display('400.html');
|
|
},
|
|
/**
|
|
* forbidden action
|
|
* @return {Promise} []
|
|
*/
|
|
_403Action: function(self){
|
|
self.display('403.html');
|
|
},
|
|
/**
|
|
* not found action
|
|
* @param {Object} self []
|
|
* @return {Promise} []
|
|
*/
|
|
_404Action: function(self){
|
|
self.display('404.html');
|
|
},
|
|
/**
|
|
* system error action
|
|
* @param {Object} self []
|
|
* @return {Promise} []
|
|
*/
|
|
_500Action: function(self){
|
|
self.display('500.html');
|
|
},
|
|
/**
|
|
* [_503Action description]
|
|
* @param {Object} self []
|
|
* @return {Promise} []
|
|
*/
|
|
_503Action: function(self){
|
|
self.display('503.html');
|
|
}
|
|
}); |