handle the http response code , if the authorization fail , exit directly.