Treat an error with a statusCode property passed to next the same as an HTTP response with that as the status code.
1.1.0