When Android makes an external connection and this url is not available it returns an error.
How to customize an error as in the example below:
java.io.IOException: Error response: 401 Service Unavailable
for something like:
Erro: Serviço não dospinível
I hope I have been clear in the question.