Skip to content

Commit

Permalink
update new internalserviceerror
Browse files Browse the repository at this point in the history
  • Loading branch information
itai-codefresh committed Jun 28, 2016
1 parent b205bc6 commit 251710a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ CFError.errorTypes = {
'ValidationError': 'ValidationError',
'TypeError': 'TypeError',
'BadRequestError': 'BadRequestError',
'ServiceUnavailableError': 'ServiceUnavailableError',
'WrongInputError': 'WrongInputError',
'Error': 'Error',
'Inherit': 'Inherit',
'DuplicateError': 'DuplicateError',
'NotImplemented': 'NotImplemented',
'WrongRepoPermission': 'WrongRepoPermission',
'FeatureDisabled': 'FeatureDisabled',
'PaymentError': 'PaymentError'
'PaymentError': 'PaymentError',
'ServiceUnavailableError:': 'ServiceUnavailableError',
'InternalServerError:': 'InternalServerError'
};

CFError.errorCodes = {
Expand All @@ -95,7 +96,8 @@ CFError.errorCodes = {
'ValidationError': 400,
'TypeError': 400,
'BadRequestError': 400,
'ServiceUnavailableError': 500,
'ServiceUnavailableError': 503,
'InternalServerError': 500,
'WrongInputError': 400,
'Error': 400,
'Inherit': 400
Expand Down

0 comments on commit 251710a

Please sign in to comment.