validate the server error