API error as HTTP error (Bad Request, Forbidden)