ColdFusion · Exception

CFHTTP Connection Failure

What does CFHTTP Connection Failure mean in ColdFusion?

Thrown by <cfhttp throwonerror="yes"> when the request can't complete cleanly — an SSL certificate ColdFusion can't authenticate (self-signed or wildcard certs), or a response code such as 301, 302, 403, 404, 410, or 500-503/505 that the tag treats as a failure rather than a valid response.

CFHTTP Connection FailureAdobe ColdFusion

Condition

Thrown by <cfhttp throwonerror="yes"> when the request can't complete cleanly — an SSL certificate ColdFusion can't authenticate (self-signed or wildcard certs), or a response code such as 301, 302, 403, 404, 410, or 500-503/505 that the tag treats as a failure rather than a valid response.

Fix

Catch this type separately from a plain request timeout (coldfusion.runtime.RequestTimedOutException) since they call for different remediation, and check cfcatch.errorCode/detail to branch between certificate problems and HTTP status failures.

Related exception