Skip to content

Add a way to get response body for error responses #5167

@marcinjahn

Description

@marcinjahn

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?

Metadata

Metadata

Assignees

Labels

CsharpPull requests that update .net codeGoJavaPythonTypeScriptPull requests that update Javascript codearea:httpFocused on functional module httpenhancementNew feature or request

Type

No type

Projects

Status

Done ✔️

Relationships

None yet

Development

No branches or pull requests

Issue actions