canceraiddev / elm-pages / Pages.Internal.NotFoundReason

Exposed for internal use only (used in generated code).

codec : Codec Payload


type alias ModuleContext =
{ moduleName : List String
, routePattern : Pages.Internal.RoutePattern.RoutePattern
, matchedRouteParams : Record 
}


type NotFoundReason
    = NoMatchingRoute
    | NotPrerendered ModuleContext (List Record)
    | NotPrerenderedOrHandledByFallback ModuleContext (List Record)
    | UnhandledServerRoute ModuleContext


type alias Payload =
{ path : Path
, reason : NotFoundReason 
}


type alias Record =
List ( String
, String 
}

document : List Pages.Internal.RoutePattern.RoutePattern -> Payload -> { title : String, body : Html msg }