FederationErrorResponseInterceptor

An interceptor responsible for handling federation-related error responses in an HTTP call.

The following response types are specifically evaluated:

  • FederationErrorResponse.Generic federation errors identified by the federation type or label in the response body

  • FederationErrorResponse.Conflict errors with non_federating_backends (HTTP Status: HttpStatusCode.Conflict)

  • FederationErrorResponse.Unreachable errors with unreachable_backends (HTTP Status: HttpStatusCode.Companion.UnreachableRemoteBackends)

Properties

Link copied to clipboard
val <Error class: unknown class>.UnreachableRemoteBackends: <Error class: unknown class>

Custom HttpStatusCode to handle when one or more federated remote servers are unreachable.

Functions

Link copied to clipboard
open suspend override fun intercept(httpResponseData: HttpResponseData): NetworkResponse.Error?

Intercepts the provided HTTP response to determine if it can be mapped to a specific NetworkResponse.