http/route_errors.ts view source
(route_error_maps: ReadonlyMap<string, RouteErrorMap> | null | undefined, spec: RouteErrorMapSpec): RouteErrorMap import {get_route_error_map} from '@fuzdev/fuz_app/http/route_errors.js'; A route's error map from a map built by resolve_app_route_error_maps, or, with no map, resolved from the route alone — without middleware.
route_error_maps
the app's route error maps, if the caller has them
ReadonlyMap<string, RouteErrorMap> | null | undefinedspec
the route spec
returns
RouteErrorMap the route's error map
throws
Error- naming the route's key when a map is given with no entry for the route — a map built over other routes, which would silently drop the middleware's definitions