Skip to content

Commit

Permalink
[server] use 'Gone' for 410 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Loire committed Oct 17, 2016
1 parent 499b085 commit 196f745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function errorHandler(err, req, res, next) {
respondWithError(res, 403, 'Forbidden');
}
else if (code === 410) {
respondWithError(res, 410, 'Blacklisted');
respondWithError(res, 410, 'Gone');
}
else {
respondWithError(res, code, 'Server error');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('meta endpoint', function() {
error: {
source: 'iframely',
code: 410,
message: 'Blacklisted'
message: 'Gone'
}
});
done(err);
Expand Down

0 comments on commit 196f745

Please sign in to comment.