AZ_INLINE AZ_NODISCARD bool _az_http_policy_retry_should_retry_http_response_code()

in sdk/src/azure/core/az_http_policy_retry.c [78:93]


AZ_INLINE AZ_NODISCARD bool _az_http_policy_retry_should_retry_http_response_code(
    az_http_status_code http_response_code)
{
  switch (http_response_code)
  {
    case AZ_HTTP_STATUS_CODE_REQUEST_TIMEOUT:
    case AZ_HTTP_STATUS_CODE_TOO_MANY_REQUESTS:
    case AZ_HTTP_STATUS_CODE_INTERNAL_SERVER_ERROR:
    case AZ_HTTP_STATUS_CODE_BAD_GATEWAY:
    case AZ_HTTP_STATUS_CODE_SERVICE_UNAVAILABLE:
    case AZ_HTTP_STATUS_CODE_GATEWAY_TIMEOUT:
      return true;
    default:
      return false;
  }
}