mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
use status -2 for 404s
human_status (response.js) defines code -2 as 'user error'. 404 is definitely a user error, so using that makes sense. eventually we should change the whole status code thing with #120
This commit is contained in:
@@ -859,7 +859,7 @@ describe("Crafatar", function() {
|
||||
});
|
||||
});
|
||||
|
||||
it("should return a 404 (invalid request path " + location + ")", function(done) {
|
||||
it("should return a 404 (invalid path " + location + ")", function(done) {
|
||||
request.get("http://localhost:3000/" + location + "/853c80ef3c3749fdaa49938b674adae6/invalid", function(error, res, body) {
|
||||
assert.ifError(error);
|
||||
assert.strictEqual(res.statusCode, 404);
|
||||
|
||||
Reference in New Issue
Block a user