Looking at the documentation here: http://docs.python-requests.org/en/latest/user/quickstart/
This should print 200 and it does.
import requests
r = requests.get('http://souke.xdf.cn/Category/1-40-0-0.html?v=5&page=1&pagesize=50')
print r.status_code
This should print 404 but it prints 200
import requests
r = requests.get('http://souke.xdf.cn/CategoryXXX/1-40-0-0.html?v=5&page=1&pagesize=50')
print r.status_code
Why is that?
Is there another way to recognize a 404 error has occurred?