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

Expose Response Headers in API exception/error [Python] #2621

Closed
3 tasks
andrueastman opened this issue Apr 27, 2023 · 0 comments · Fixed by microsoft/kiota-http-python#95
Closed
3 tasks
Assignees
Labels
enhancement New feature or request Python
Milestone

Comments

@andrueastman
Copy link
Member

To improve the error handling experience we need to add the response headers the main api error type:

  • add a response headers field to the Api exception class
  • add corresponding accessors (if needed)
  • populate the information in the request adapter when an error is encountered

Examples
Dotnet

Java

Typescript

Go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants