Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AmpUrlError

import type { AmpUrlError } from "https://googleapis.deno.dev/v1/acceleratedmobilepageurl:v1.ts";

AMP URL Error resource for a requested URL that couldn't be found.

interface AmpUrlError {
errorCode?:
| "ERROR_CODE_UNSPECIFIED"
| "INPUT_URL_NOT_FOUND"
| "NO_AMP_URL"
| "APPLICATION_ERROR"
| "URL_IS_VALID_AMP"
| "URL_IS_INVALID_AMP";
errorMessage?: string;
originalUrl?: string;
}

§Properties

§
errorCode?: "ERROR_CODE_UNSPECIFIED" | "INPUT_URL_NOT_FOUND" | "NO_AMP_URL" | "APPLICATION_ERROR" | "URL_IS_VALID_AMP" | "URL_IS_INVALID_AMP"
[src]

The error code of an API call.

§
errorMessage?: string
[src]

An optional descriptive error message.

§
originalUrl?: string
[src]

The original non-AMP URL.