Handle error codes and failed request in error · Issue #1179 · openapi-ts/openapi-typescript

Description Currently in order to handle errors the code usually looks something like this: const { data, error } = get('url/which/fails/to/fetch') .catch(error => ({error, response: new Response()...