When nothing is found in DB for given and it should return HTTP 200 which is correct, as per me.As per W3C standard its '404 Not Found -The server has not found anything matching the Request-URI'. Raise HTTPError(req. I have doubt on your statement 'In fact, the proper approach is to return a HTTP code 404 (NOT FOUND)'. 'http', request, response, code, msg, hdrs)įile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 569, in errorįile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 503, in _call_chainįile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 649, in http_error_default Json.dump(data, json_file)Then this error keep popping up ever since, even with user agent added.įile "C:\Users\yee\video.py", line 46, in įile "C:\Users\yee\video.py", line 25, in look_for_new_videoįile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 222, in urlopenįile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 531, in openįile "c:\users\yee\appdata\local\programs\python\python37\lib\urllib\request.py", line 641, in http_response With open('videoid.json', 'w ') as json_file: With open('videoid.json', 'r') as json_file: Url = base_search_url 'key=
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |