Skip to content

Commit

Permalink
Update dependencies; Improve 404 and 500 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Sep 18, 2010
1 parent 5172de4 commit de93213
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/Socket.IO
2 changes: 1 addition & 1 deletion lib/Socket.IO-node
2 changes: 1 addition & 1 deletion lib/express
8 changes: 2 additions & 6 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ server.error(function(err, req, res, next){
,description: ''
,author: ''
,analyticssiteid: 'XXXXXXX'
} },function(err,str){
res.send(str,{},404);
});
},status: 404 });
} else {
res.render('500.ejs', { locals: {
header: '#Header#'
Expand All @@ -37,9 +35,7 @@ server.error(function(err, req, res, next){
,author: ''
,analyticssiteid: 'XXXXXXX'
,error: err
} },function(err,str){
res.send(str,{},500);
});
},status: 500 });
}
});
server.listen( port);
Expand Down

0 comments on commit de93213

Please sign in to comment.