% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{gracefully_fail}
\alias{gracefully_fail}
\title{Gracefully handle HTTP request failures}
\usage{
gracefully_fail(request, path = NULL)
}
\arguments{
\item{request}{An httr2 request object.}

\item{path}{Optional file path to save the response body to disk.}
}
\value{
An httr2 response object, or \code{invisible(NULL)} on failure.
}
\description{
Validates connectivity, performs the request, and downgrades
HTTP errors to messages instead of stopping.
}
\keyword{internal}
