#### Bug Report Checklist - [ ] Have you provided a full/minimal spec to reproduce the issue? - [ ] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagger-parser/online/))? - [ ] What's the version of OpenAPI Generator used? - [X] Have you search for related issues/PRs? - [ ] What's the actual output vs expected output? - [ ] [Optional] Bounty to sponsor the fix ([example](https://www.bountysource.com/issues/66123212-javascript-client-produces-a-wrong-object-for-a-string-enum-type-that-is-used-with-ref)) ##### Description When making a request to a server, there is a possibility of throwing an error, but that's not annotated. ##### openapi-generator version 4.20.0 ##### Suggest a fix Annotated the api calls with the respective exceptions.