Anchorage API reference
    Preparing search index...

    One denied request. host is null when the URL never parsed; hop is 0 for the initial request, n for the nth redirect. Paths and query strings can contain secrets, so diagnostic fields use the hostname.

    interface EgressDenial {
        code?:
            | "EGRESS_INPUT_INVALID"
            | "EGRESS_URL_INVALID"
            | "EGRESS_SCHEME_NOT_ALLOWED"
            | "EGRESS_HOST_NOT_DECLARED"
            | "EGRESS_REDIRECT_URL_INVALID"
            | "EGRESS_REDIRECT_SCHEME_NOT_ALLOWED"
            | "EGRESS_REDIRECT_HOST_DENIED"
            | "EGRESS_REDIRECT_UNVERIFIABLE"
            | "EGRESS_REDIRECT_LIMIT_EXCEEDED"
            | "EGRESS_REDIRECT_BODY_UNREPLAYABLE"
            | "EGRESS_DENIED";
        hop: number;
        host: string
        | null;
        reason: string;
    }
    Index

    Properties

    Properties

    code?:
        | "EGRESS_INPUT_INVALID"
        | "EGRESS_URL_INVALID"
        | "EGRESS_SCHEME_NOT_ALLOWED"
        | "EGRESS_HOST_NOT_DECLARED"
        | "EGRESS_REDIRECT_URL_INVALID"
        | "EGRESS_REDIRECT_SCHEME_NOT_ALLOWED"
        | "EGRESS_REDIRECT_HOST_DENIED"
        | "EGRESS_REDIRECT_UNVERIFIABLE"
        | "EGRESS_REDIRECT_LIMIT_EXCEEDED"
        | "EGRESS_REDIRECT_BODY_UNREPLAYABLE"
        | "EGRESS_DENIED"

    Stable request refusal code; absent when a caller constructs a denial without one.

    hop: number

    Zero for the initial request, or the one-based redirect hop number.

    host: string | null

    Denied hostname, or null when the URL was invalid.

    reason: string

    Safe explanation that excludes the path and query string.