Search code examples
python-2.7python-requestshttp-status-code-404broken-links

Incorrect HTTP Status code


I get a 404 error while checking the link using requests for the page below while the page opens fine in the browser. Can someone please help me understand what's happening?. I get the same error using this service as well.

url = "http://www.dell.com/en-us/learn/assets/corporate~case-studies~en/documents~2014-chitale-dairy-10012962-networking-blades-support.pdf

response = requests.get(url)
print response.status_code

Solution

  • Seems that Hypertext Transfer Protocol is working fine! The pdf file that you trying access is no longer exist or never existed.

    enter image description here