diff --git a/internal/pkg/resource_availability_manager/main.go b/internal/pkg/resource_availability_manager/main.go index c9f0a35e..bc9adc16 100644 --- a/internal/pkg/resource_availability_manager/main.go +++ b/internal/pkg/resource_availability_manager/main.go @@ -27,7 +27,7 @@ const ( NetworkPointService NetworkPointType = "service" ResourceAvailabilityRequestIngress ResourceAvailabilityRequestType = "ingress" ResourceAvailabilityRequestLoadbalancer ResourceAvailabilityRequestType = "loadbalancer" - FailedHttpCode int = 500 + FailedHttpCode int = 503 HttpsPortNumber int = 443 ) @@ -207,7 +207,7 @@ func (r *ResourceAvailabilityManager) CheckHttpStatus(ctx context.Context, addre return err } - if resp.StatusCode >= FailedHttpCode { + if resp.StatusCode == FailedHttpCode { err = fmt.Errorf("Status is %s", resp.Status) }