Open akhomchenko opened 7 years ago
err.status || 0 would fail an entire app if no err.status would be found.
err.status || 0
err.status
If no code is available it is better to return 500 or something like that.
500
True, not sure how this got in there. Hot needle and copy-paste, probably.
err.status || 0
would fail an entire app if noerr.status
would be found.If no code is available it is better to return
500
or something like that.