Skip to content

Commit 0d3d781

Browse files
committed
Change the server_error code to 500
Modify the corresponding test to accept error code 500
1 parent 0a52476 commit 0d3d781

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/errors/server-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var util = require('util');
1818

1919
function ServerError(message, properties) {
2020
properties = _.assign({
21-
code: 503,
21+
code: 500,
2222
name: 'server_error'
2323
}, properties);
2424

test/integration/handlers/token-handler_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ describe('TokenHandler integration', function() {
293293
.then(should.fail)
294294
.catch(function() {
295295
response.body.should.eql({ error: 'server_error', error_description: 'Unhandled exception' });
296-
response.status.should.equal(503);
296+
response.status.should.equal(500);
297297
});
298298
});
299299

0 commit comments

Comments
 (0)