screenshotone-errors
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -21,3 +21,4 @@ export declare enum ErrorCode { | ||
ContentContainsSpecifiedString = "content_contains_specified_string", | ||
TemporaryUnavailable = "temporary_unavailable" | ||
TemporaryUnavailable = "temporary_unavailable", | ||
ResultingImageTooLarge = "resulting_image_too_large" | ||
} | ||
@@ -24,0 +25,0 @@ interface APIError { |
@@ -26,2 +26,3 @@ "use strict"; | ||
ErrorCode["TemporaryUnavailable"] = "temporary_unavailable"; | ||
ErrorCode["ResultingImageTooLarge"] = "resulting_image_too_large"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
@@ -36,2 +37,9 @@ const allErrors = { | ||
}, | ||
[ErrorCode.ResultingImageTooLarge]: { | ||
httpStatusCode: 400, | ||
title: "Resulting Image Too Large", | ||
code: "resulting_image_too_large", | ||
description: "The resulting image is too large for the specified format.", | ||
documentationUrl: "https://screenshotone.com/docs/errors/resulting-image-too-large/", | ||
}, | ||
[ErrorCode.NameNotResolved]: { | ||
@@ -38,0 +46,0 @@ httpStatusCode: 400, |
{ | ||
"name": "screenshotone-errors", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Errors produced by the ScreenshotOne API.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -22,2 +22,3 @@ export enum ErrorCode { | ||
TemporaryUnavailable = "temporary_unavailable", | ||
ResultingImageTooLarge = "resulting_image_too_large", | ||
} | ||
@@ -43,2 +44,11 @@ | ||
}, | ||
[ErrorCode.ResultingImageTooLarge]: { | ||
httpStatusCode: 400, | ||
title: "Resulting Image Too Large", | ||
code: "resulting_image_too_large", | ||
description: | ||
"The resulting image is too large for the specified format.", | ||
documentationUrl: | ||
"https://screenshotone.com/docs/errors/resulting-image-too-large/", | ||
}, | ||
[ErrorCode.NameNotResolved]: { | ||
@@ -45,0 +55,0 @@ httpStatusCode: 400, |
27917
479