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

[Bug]: Extend APIException to give more details #71

Open
1 task done
ankursethi27 opened this issue Nov 16, 2023 · 1 comment
Open
1 task done

[Bug]: Extend APIException to give more details #71

ankursethi27 opened this issue Nov 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ankursethi27
Copy link

What's on your mind?

The SDK uses ApiException for sending API exceptions but clients can only read string from this object.
Clients should be able to easily get fields such as HTTP status code, headers, body, message, etc. that are generic to all requests. Status Code is specially useful for emitting metrics and quickly debugging.

API exception should have fields corresponding to them e.g. status_code, body, etc.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jannisringwald
Copy link

+1

@nan-li nan-li added the enhancement New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants