I can't see anything in the code that might cause a 410: Gone error. That error should only be returned by the server if the resource has been deleted. Maybe there is a problem with the default headers that are being sent by the QtNetwork APIs (the user-agent, for example). A URL encoding problem would be another possible cause, but I don't see that being the case here, and the server should return a 404: Not found error if the URL does not point to valid resource.