openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ] Rust: Copy headers in case of errors

Open omer-shtivi opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Some APIs when an error is returned they provides headers which are useful: example: https://learn.microsoft.com/en-us/rest/api/power-bi/#throttling But the code which generated doesn't copy the headers.

Describe the solution you'd like

Copy the response of the headers into the returned error like the body is copied.

omer-shtivi avatar May 15 '24 11:05 omer-shtivi