Skip to content

Conversation

@reuben453
Copy link
Owner

@reuben453 reuben453 commented Apr 8, 2022

Raise an error for any HTTP status code in the 4xx and 5xx range.

Since the expectation is that this gem raises an error when the response is not successful, it can cause bugs when an error is not raised for a 4xx or 5xx response code. For example, see https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/2331#note_904652227.

We can raise a ResponseError if there is no special class for a particular 4xx or 5xx status code.

@reuben453 reuben453 force-pushed the rp/raise-on-all-4xx-5xx branch 2 times, most recently from db40069 to 44fb711 Compare April 8, 2022 12:01
NARKOZ and others added 3 commits April 8, 2022 19:17
Raise error for HTTP status code 522
If there is no special error class, raise ResponseError.
@reuben453 reuben453 force-pushed the rp/raise-on-all-4xx-5xx branch from 44fb711 to 2c3e9e1 Compare April 13, 2022 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants