OptimalBits / node_acl

Access control lists for node applications
2.62k stars 371 forks source link

Express 4 and error status code #184

Open anddah opened 8 years ago

anddah commented 8 years ago

The default way of handling error codes in Express 4 is using the property status

res.status(err.status || 500);

so all errors become 500 using default template in Express 4 which wasn't very clear