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:
jomo
2015-07-17 10:09:34 +02:00
parent fc5ab113db
commit 607dcaf6e5
6 changed files with 15 additions and 14 deletions

View File

@@ -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);