added exceptions for HTTPS/shield related statuses

This commit is contained in:
Spencer Alger
2015-01-06 07:18:22 -07:00
parent 4fc1c91634
commit 3e5df1b6ad

View File

@ -80,19 +80,19 @@ _.inherits(errors.RequestTypeError, ErrorAbstract);
var statusCodes = {
/**
* Service Unavailable
* ServiceUnavailable
* @param {String} [msg] - An error message that will probably end up in a log.
*/
503: 'Service Unavailable',
/**
* Internal Server Error
* InternalServerError
* @param {String} [msg] - An error message that will probably end up in a log.
*/
500: 'Internal Server Error',
/**
* Precondition Failed
* PreconditionFailed
* @param {String} [msg] - An error message that will probably end up in a log.
*/
412: 'Precondition Failed',
@ -104,25 +104,31 @@ var statusCodes = {
409: 'Conflict',
/**
* Forbidden
* AuthorizationException
* @param {String} [msg] - An error message that will probably end up in a log.
*/
403: 'Forbidden',
403: 'Authorization Exception',
/**
* Not Found
* NotFound
* @param {String} [msg] - An error message that will probably end up in a log.
*/
404: 'Not Found',
/**
* Bad Request
* AuthenticationException
* @param {String} [msg] - An error message that will probably end up in a log.
*/
401: 'Authentication Exception',
/**
* BadRequest
* @param {String} [msg] - An error message that will probably end up in a log.
*/
400: 'Bad Request',
/**
* Moved Permanently
* MovedPermanently
* @param {String} [msg] - An error message that will probably end up in a log.
*/
301: 'Moved Permanently'
@ -138,4 +144,4 @@ _.each(statusCodes, function (name, status) {
_.inherits(StatusCodeError, ErrorAbstract);
errors[className] = StatusCodeError;
errors[status] = StatusCodeError;
});
});