Missing require in request

- When the API errors with an unexpected status code the request would error with
an unhelpful error due to the missing require of apierror.