iya-sts
    Preparing search index...

    Variable fallbackFor

    fallbackFor: (
        status: any,
        matched: any,
    ) =>
        | ""
        | "STS-HTTP-0001"
        | "STS-HTTP-0002"
        | "STS-HTTP-0003"
        | "STS-HTTP-0004" = fallbackFor

    Type Declaration

      • (
            status: any,
            matched: any,
        ):
            | ""
            | "STS-HTTP-0001"
            | "STS-HTTP-0002"
            | "STS-HTTP-0003"
            | "STS-HTTP-0004"
      • Chooses the generic code for a failed HTTP response nothing marked.

        Parameters

        • status: any

          the HTTP status

        • matched: any

          whether a route matched the request

        Returns "" | "STS-HTTP-0001" | "STS-HTTP-0002" | "STS-HTTP-0003" | "STS-HTTP-0004"

        STS-HTTP-0001 for an unrouted 404, -0004 for a 413, -0003 for a 5xx, -0002 for another 4xx, and '' below 400