Adds the `response.error()` middleware to connect and connect-like http stacks.