My mobile app needs to send Ajax request and know the difference between if the server is down or the server is live but is giving error.
I understand that if there is some server error, the server will return response with 50X code.
But what will happen if the server is down. What error will the client get?
I searched but its confusing me - People are advising that your server should be set to respond with code 503 if its on maintenance. But I cant understand the fact - that the server is down, how can it even send 503 response back??