Code Review
/
portal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
nexus site path corrected
[portal.git]
/
ecomp-portal-FE-os
/
server
/
components
/
errors
/
index.js
1
/**
2
* Error responses
3
*/
4
5
'use strict';
6
7
module.exports[404] = function pageNotFound(req, res) {
8
var viewFilePath = '404';
9
var statusCode = 404;
10
var result = {
11
status: statusCode
12
};
13
14
res.status(result.status);
15
res.render(viewFilePath, function (err) {
16
if (err) { return res.json(result, result.status); }
17
18
res.render(viewFilePath);
19
});
20
};