Does axios throw for bad http status by default
- User
Does axios throw for bad http status by default
Assistant
Yes, by default, Axios will reject a promise with a error object when the HTTP status code is not in the 2xx range. The error object contains the following properties:
- config: The configuration object that was used to make the request.
- request: The request object (if available).
- response: The response object (if available, usually received for 2xx status codes).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.