2014-05-09 12:11:29 +02:00
|
|
|
// # Request Entity Too Large Error
|
|
|
|
// Custom error class with status code and type prefilled.
|
|
|
|
|
|
|
|
function RequestEntityTooLargeError(message) {
|
|
|
|
this.message = message;
|
|
|
|
this.stack = new Error().stack;
|
|
|
|
this.code = 413;
|
2015-04-22 22:29:45 +02:00
|
|
|
this.errorType = this.name;
|
2014-05-09 12:11:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
RequestEntityTooLargeError.prototype = Object.create(Error.prototype);
|
2014-07-02 16:22:18 +02:00
|
|
|
RequestEntityTooLargeError.prototype.name = 'RequestEntityTooLargeError';
|
2014-05-09 12:11:29 +02:00
|
|
|
|
2014-09-10 00:06:24 -04:00
|
|
|
module.exports = RequestEntityTooLargeError;
|