you will need to look at the http return code and message and then it depends on what the server sends out