kiota icon indicating copy to clipboard operation
kiota copied to clipboard

Is there any way to get response body when status code is unsuccessful?

Open marcinjahn opened this issue 1 year ago • 7 comments

I generated a client with Kiota, based on an OpenAPI spec, which does not specify error codes, hence errorMapping is empty in Kiota-generated client. The ApiException that Kiota throws contains just the status code and response headers. Is there any way to read the actual response body (as string) without modifying the Kiota-generated client code?

marcinjahn avatar Feb 13 '24 07:02 marcinjahn