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

fix: properly handle request errors

Open LPkkjHD opened this issue 1 year ago • 0 comments

Currently when a request goes wrong (essentially when !response.ok) we always end up with some sort of Network Error, which is not the desired behavior when the spec and the generated typing expects us to have a <RequestSecifc>Error.

As this issue isn't new and has been solved in comments by SeanCondon as well as MarcusOhman91 already this is more of a paperwork PR.

Closes #188 Closes #113

LPkkjHD avatar Sep 24 '24 14:09 LPkkjHD