Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return an error for non-2xx responses using error_for_status()
Previously, the request function returned Ok(()) even if the HTTP response status was an error (4xx/5xx). By adding `response.error_for_status()?`, we correctly propagate HTTP errors rather than masking them, ensuring that timeouts and other non-2xx status codes produce an error as expected.
- Loading branch information