Send proper HTTP status code for failed files
This commit is contained in:
parent
149eeb6277
commit
ab671917f7
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ var Server = {
|
||||||
}
|
}
|
||||||
// Something actually went wrong
|
// Something actually went wrong
|
||||||
else {
|
else {
|
||||||
res.send(500);
|
// Status codes over 500 are server errors
|
||||||
|
if(err.status >= 500)
|
||||||
|
Logger.errlog.log(err);
|
||||||
|
res.send(err.status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue