Created
November 3, 2019 06:03
-
-
Save afaqk9394/1a269300ddb56d08a468c33c960c2e0d to your computer and use it in GitHub Desktop.
Troubleshoot a problem given the HTTP response code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests as req | |
| response = req.get('https://github.com/apps/devnet-app') | |
| print (response.status_code) | |
| if response.status_code == 200: | |
| print('Success!') | |
| elif response.status_code == 404: | |
| print('Not Found.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment