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

Consider including response body in ErrorResponse message #33

Open
tnajdek opened this issue Aug 28, 2023 · 0 comments
Open

Consider including response body in ErrorResponse message #33

tnajdek opened this issue Aug 28, 2023 · 0 comments
Assignees

Comments

@tnajdek
Copy link
Owner

tnajdek commented Aug 28, 2023

Currently ErrorResponse (which extends Error) is thrown for failed requests. Message (which is usually immediately available, e.g. printed on console), consists of status code and status text, e.g. 412: Precondition Failed. It would be more helpful if it actually included response body which usually contains a hint what went wrong, e.g. 412: Precondition Failed. The file has changed remotely since retrieval.

@tnajdek tnajdek self-assigned this Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant