Throw `Error` with `statusCode` for an HTTP error.

When a raised `Error` has a `statusCode` property, return it to the
caller as an HTTP error.

Closes #11.