API - add status code #5857
-
Hi 👋 I am wondering if the status code could also be returned in the request? This would help developers catch errors stemming from the EM API. (I am using the free version of the API, maybe this exists in the paid already?). I see the documentation contains the keys "status" and "message" when I implement a faulty request but no code. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! The https status code should be returned in the http header so it's already included. In Python with requests you would access it like: response = Session.get(URL)
response.status_code How you access this might differ depending on the ecosystem you use. |
Beta Was this translation helpful? Give feedback.
Hi!
The https status code should be returned in the http header so it's already included. In Python with requests you would access it like:
How you access this might differ depending on the ecosystem you use.