Fix request_error method.