ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Fault.Http

Description

Shared HTTP fault classification for registry, queue, and advisory adapters. Client exceptions become Ecluse.Core.Fault values at the adapter boundary.

Synopsis

Documentation

classifyTransport :: HttpException -> TransportFault Source #

Classify a client exception, recognising TLS failures by type rather than rendered text.

isRetryableStatusCode :: Int -> Bool Source #

Whether an HTTP status signals a temporary failure: server errors, timeout, or throttling.