Improve error message for null/undefined to res.status