BaseFederationErrorResponseInterceptor

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)

Inheritors

Constructors

Link copied to clipboard
constructor()

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.