Skip to content

Commit

Permalink
not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jul 26, 2014
1 parent 552e535 commit dbdf45a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ var request = require('request');

var utils = exports;

var failCodes = {
403: "The request is correct, but could not be process.",
404: "The requested URL is incorrect or the resource does not exist.",
422: "The sent parameters are erroneous",
500: "An error occurred. Please contact support"
};

utils.failCodes = failCodes;

utils.modem = function(options, callback) {
Expand Down Expand Up @@ -42,9 +35,6 @@ utils.modem = function(options, callback) {
}

var statusCode = res.statusCode.toString();
if(Object.keys(failCodes).indexOf(statusCode) !== -1) {
return callback(new Error('WHMCS Error (' + statusCode + '): ' + failCodes[statusCode]));
}

var data;
try {
Expand Down

0 comments on commit dbdf45a

Please sign in to comment.