The body of the error is not reachable through ApiException class #6023
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:feature
New experience request
Is your feature request related to a problem? Please describe the problem.
Suppose a scenario in an API returns errors that are not documented in OpenAPI. In that case, Kiota throws an instance of ApiException. The problem is that there is no way to reach the body of the error message in this situation.
Based on documentation there is a message field in that class which is filled with a predefined message. That doesn't help at all.
Client library/SDK language
None
Describe the solution you'd like
I suggest having something like a content stream in that exception class so that I can access the server's response payload.
Additional context
No response
The text was updated successfully, but these errors were encountered: