Module Naboris.ErrorHandler

Module with error handler types.

type t = exn -> Route.t -> ((string * string) list * string) Lwt.t

Called when Res.reportError is called. Expects return values of an Lwt.t promise containing a tuple of headers (list(string * string)) and response_body (string).