Throw Exception of returned error message from the server
bug fix