checking server response error