Status code on default exception

If `err.status` is falsy, the status code is being set to 500, so it's the latter that should be passed to the template.