HTTP 404 · Not Found
WEBPAGE_NOT_FOUND
A preview for the specified webpage url could not be generated.
HTTP 404
Web previews
When & why it happens
No webpage matching the request exists on the server (already deleted, wrong id, or not yet propagated).
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "WEBPAGE_NOT_FOUND" {
// handle this error
}
}
Related errors
URL_INVALIDInvalid URL provided.WEBDOCUMENT_INVALIDInvalid webdocument URL provided.WEBDOCUMENT_MIME_INVALIDInvalid webdocument mime type provided.WEBDOCUMENT_SIZE_TOO_BIGWebdocument is too big!WEBDOCUMENT_URL_INVALIDThe specified webdocument URL is invalid.WEBPAGE_CURL_FAILEDFailure while fetching the webpage with cURL.WEBPAGE_MEDIA_EMPTYWebpage media empty.WEBPAGE_URL_INVALIDThe specified webpage url is invalid.