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

Get HTTP status code from requests

Open ernestoongaro opened this issue 5 years ago • 4 comments

Per slack convo with @joeldodge79 - would like a way to catch http status codes from requests - many of them are documented

image

ernestoongaro avatar Nov 02 '20 15:11 ernestoongaro

We want to improve the error handling in general to have this information, but which SDK is this for? The "raw request" for the Typescript SDK has this information, FWIW.

jkaster avatar Mar 30 '21 22:03 jkaster

Thanks @jkaster, I was referring to the python SDK

ernestoongaro avatar Apr 07 '21 20:04 ernestoongaro

Thanks. We should be able to add this information to the other SDKs soon.

jkaster avatar Apr 07 '21 22:04 jkaster

The "raw request" for the Typescript SDK has this information, FWIW.

@jkaster Could you give me more information about this, I am not able to find it.

I am having a similar problem because it looks like the format of the 404 error messages that the api returns has changed and my logic was depending on it as is the only information I can get from the sdk.

Thank you

jonatan-alama avatar Oct 15 '21 06:10 jonatan-alama