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

Support for statusCode in all responses/response types #33

Open
tfrancois opened this issue Nov 6, 2019 · 1 comment
Open

Support for statusCode in all responses/response types #33

tfrancois opened this issue Nov 6, 2019 · 1 comment

Comments

@tfrancois
Copy link

Currently, the library does not return the statusCode as part of the response. It is often beneficial to be able to discern the returned statusCode for an HTTP request even if error has not an occurred. Being able to discern and handle responses that return with a 200 or 204 HTTP status code is particularly useful and currently lacking in successful requests. Of particular interest is when there is no body returned for non-JSON based responses. Without the statusCode, the response is a null body with no other confirmation that the request was successful.

Any way to add support for returning the statusCode for all responses? Thanks in advance.

@laurisvan
Copy link
Owner

Agree, it would be helpful. Any ideas on how to add it without breaking the API (of just returning the actual payload)?

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

No branches or pull requests

2 participants