Send proper HTTP status code for failed files

This commit is contained in:
Calvin Montgomery 2013-07-27 21:14:19 -04:00
parent 149eeb6277
commit ab671917f7
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ var Server = {
}
// Something actually went wrong
else {
res.send(500);
// Status codes over 500 are server errors
if(err.status >= 500)
Logger.errlog.log(err);
res.send(err.status);
}
}
});