Quote:
What will I get if my Internet connection drops?
Is there an HTTP code for that kind of problem?
HTTP Response Codes are just that, response codes. If you have a loss of connection you don't get a response code, you get no response at all. Response codes (like 200, 404, 500, etc) come directly from the server. If you can't connect to the server then you won't get any code.
Depending on how you write the code, you could get a socket error or it would hang. This is especially problematic if you lose connection in the middle of a request. The best solution is a combination of Solution 1 and Solution 2.