We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 687cd09 commit c9afc1cCopy full SHA for c9afc1c
app/templates/server/components/errors/index.js
@@ -14,7 +14,7 @@ module.exports[404] = function pageNotFound(req, res) {
14
res.status(result.status);
15
res.render(viewFilePath, {}, function(err, html) {
16
if (err) {
17
- return res.json(result, result.status);
+ return res.status(result.status).json(result);
18
}
19
20
res.send(html);
0 commit comments