Skip to content

API - add status code #5857

Answered by VIKTORVAV99
alyabolowich asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alyabolowich
Comment options

Answer selected by alyabolowich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants