diff --git a/package.json b/package.json index affdf5a..f6d62dd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "screenshotone-errors", "homepage": "https://screenshotone.com", - "version": "1.0.17", + "version": "1.0.18", "description": "Errors produced by the ScreenshotOne API.", "repository": { "type": "git", diff --git a/src/main.ts b/src/main.ts index 3a17df6..d3eb61e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,6 +18,7 @@ export enum ErrorCode { HostReturnedError = "host_returned_error", StorageReturnedTransientError = "storage_returned_transient_error", ContentContainsSpecifiedString = "content_contains_specified_string", + ContentMissingSpecifiedString = "content_missing_specified_string", TemporaryUnavailable = "temporary_unavailable", ResultingImageTooLarge = "resulting_image_too_large", InvalidCookieParameter = "invalid_cookie_parameter", @@ -104,6 +105,15 @@ const allErrors: Record = { documentationUrl: "https://screenshotone.com/docs/errors/host-returned-error/", }, + [ErrorCode.ContentMissingSpecifiedString]: { + httpStatusCode: 500, + title: "Content Missing Specified String", + code: "content_missing_specified_string", + description: + "The page content is missing the specified string by the `fail_if_content_missing` option. If it seems to be a mistake or not what you expected, please, reach out to `support@screenshotone.com` as quickly as possible, and will assist and try to resolve your problem.", + documentationUrl: + "https://screenshotone.com/docs/errors/content-missing-specified-string/", + }, [ErrorCode.ContentContainsSpecifiedString]: { httpStatusCode: 500, title: "Content Contains Specified String",