Skip to content

Commit 534b5e7

Browse files
committed
Remove statuses, use http.STATUS_CODES
1 parent b7b8af6 commit 534b5e7

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

lib/errors/oauth-error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
var _ = require('lodash');
77
var util = require('util');
8-
var statuses = require('statuses');
8+
var http = require('http');
99
/**
1010
* Constructor.
1111
*/
@@ -24,7 +24,7 @@ function OAuthError(messageOrError, properties) {
2424
properties.inner = error;
2525
}
2626
if (_.isEmpty(message)) {
27-
message = statuses[properties.code];
27+
message = http.STATUS_CODES[properties.code];
2828
}
2929
this.code = this.status = this.statusCode = properties.code;
3030
this.message = message;

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"bluebird": "3.7.2",
2323
"lodash": "4.17.21",
2424
"promisify-any": "2.0.1",
25-
"statuses": "1.5.0",
2625
"type-is": "1.6.18"
2726
},
2827
"devDependencies": {

0 commit comments

Comments
 (0)