diff --git a/routes/avatars.js b/routes/avatars.js
index 16d6b4e..ec29940 100644
--- a/routes/avatars.js
+++ b/routes/avatars.js
@@ -69,7 +69,7 @@ module.exports = function(req, res) {
logging.debug(rid, "matches:", matches);
sendimage(rid, http_status, status, image);
} else {
- handle_default(rid, 404, status, userId);
+ handle_default(rid, 200, status, userId);
}
});
} catch(e) {
diff --git a/routes/renders.js b/routes/renders.js
index 51b1ade..68612d4 100644
--- a/routes/renders.js
+++ b/routes/renders.js
@@ -85,7 +85,7 @@ module.exports = function(req, res) {
sendimage(rid, http_status, status, image);
} else {
logging.log(rid, "image not found, using default.");
- handle_default(rid, 404, status, userId);
+ handle_default(rid, 200, status, userId);
}
});
} catch(e) {
diff --git a/routes/skins.js b/routes/skins.js
index 3a8da64..9f6b3f8 100644
--- a/routes/skins.js
+++ b/routes/skins.js
@@ -43,7 +43,7 @@ module.exports = function(req, res) {
logging.debug(rid, "matches:", matches);
sendimage(rid, http_status, image);
} else {
- handle_default(rid, 404, userId);
+ handle_default(rid, 200, userId);
}
});
} catch(e) {
diff --git a/test/test.js b/test/test.js
index c8f3dea..347eb07 100644
--- a/test/test.js
+++ b/test/test.js
@@ -311,9 +311,9 @@ describe("Crafatar", function() {
for (l in locations) {
var location = locations[l];
(function(location) {
- it("should return a 404 (default steve image " + location + ")", function(done) {
+ it("should return a 200 (default steve image " + location + ")", function(done) {
request.get("http://localhost:3000/" + location + "/invalidjsvns?default=steve", function(error, res, body) {
- assert.equal(404, res.statusCode);
+ assert.equal(200, res.statusCode);
done();
});
});
diff --git a/views/index.jade b/views/index.jade
index b15ed69..e169769 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -65,7 +65,7 @@ block content
| The standard value is calculated based on the UUID (even = alex, odd = steve).
| Usernames always default to steve.
td
- | The image to be served when the userid has no skin (404).
+ | The image to be served when the userid has no skin.
| Valid options are
a(href="/avatars/0?default=steve") steve
| ,
@@ -198,7 +198,7 @@ block content
| The standard value is calculated based on the UUID (even = alex, odd = steve).
| Usernames always default to steve.
td
- | The image to be served when the userid has no skin (404).
+ | The image to be served when the userid has no skin.
| Valid options are
a(href="/skins/0?default=steve") steve
| ,
@@ -229,7 +229,7 @@ block content
| Replace
mark.green userid
| with a Mojang UUID or username to get the related cape.
- | The user's cape is returned, otherwise a 404 is thrown.
+ | The user's cape is returned, otherwise a 404 is returned.
.code
| #{domain}/capes/
mark.green userid