Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some 2xx codes considered error responses #35

Open
mithodin opened this issue Jun 2, 2022 · 0 comments · May be fixed by #36
Open

some 2xx codes considered error responses #35

mithodin opened this issue Jun 2, 2022 · 0 comments · May be fixed by #36

Comments

@mithodin
Copy link

mithodin commented Jun 2, 2022

OpErrorType consider only 200 and 201 as "successful" responses (see

type _OpErrorType<T> = {
), when according to the HTTP spec, all 2xx status codes signify success. This becomes a problem e.g. for a DELETE request, where a success usually returns status 204 (e.g. https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore-expanded.json#L158)

@mithodin mithodin changed the title 2xx codes considered error responses some 2xx codes considered error responses Jun 2, 2022
@gentarooka gentarooka linked a pull request Jun 3, 2022 that will close this issue
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 a pull request may close this issue.

1 participant