Check status code in make_request.