From 0009535fc012394ba238902584a2db0e66ba3b3d Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 2 Jan 2015 22:26:29 +0100 Subject: [PATCH] upper case HTTP status messages --- routes/avatars.js | 2 +- server.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/avatars.js b/routes/avatars.js index c3d0cec..c597eba 100644 --- a/routes/avatars.js +++ b/routes/avatars.js @@ -29,7 +29,7 @@ module.exports = function(req, res) { "Content-Type": "text/plain", "Response-Time": new Date() - start }); - res.end("Invalid size"); + res.end("Invalid Size"); return; } else if (!helpers.uuid_valid(uuid)) { res.writeHead(422, { diff --git a/server.js b/server.js index ac43201..63b3dd8 100644 --- a/server.js +++ b/server.js @@ -21,7 +21,7 @@ function asset_request(req, res) { fs.readFile(filename, function(err, contents) { if (err) { res.writeHead(500, {"Content-type" : "text/plain"}); - res.end("Internal server error"); + res.end("Internal Server Error"); } else { res.writeHead(200, { "Content-type" : mime.lookup(filename), @@ -34,7 +34,7 @@ function asset_request(req, res) { res.writeHead(404, { "Content-type" : "text/plain" }); - res.end("Not found"); + res.end("Not Found"); } }); } @@ -72,13 +72,13 @@ function requestHandler(req, res) { res.writeHead(500, { "Content-Type": "text/plain" }); - res.end(config.debug_enabled ? error : "Internal server error"); + res.end(config.debug_enabled ? error : "Internal Server Error"); } } else { res.writeHead(405, { "Content-Type": "text/plain" }); - res.end("Method not allowed"); + res.end("Method Not Allowed"); } }