0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Set correct HTTP status code on error

closes #1055
This commit is contained in:
Jakob Gillich 2013-10-17 21:42:15 +02:00
parent 14df3e7a69
commit 0f048eeb79

View file

@ -121,7 +121,7 @@ errors = {
}
// TODO: Attach node-polyglot
res.render((errorView || 'error'), {
res.status(code).render((errorView || 'error'), {
message: err.message || err,
code: code,
stack: stack
@ -186,4 +186,4 @@ _.bindAll(
'render500Page'
);
module.exports = errors;
module.exports = errors;