RoutexErrorDispatcher

Decodes wire-form error responses from the YAXI service into typed RoutexError subclasses. Falls back to NotFound for HTTP 404 and to HttpResponse for any status whose body the dispatcher cannot recognize as a known variant.

Functions

Link copied to clipboard
fun dispatch(httpStatus: Int, body: String): RoutexError

Decode an error response.