screenshotone-errors
Advanced tools
Comparing version 1.0.8 to 1.0.9
export declare enum ErrorCode { | ||
Timeout = "timeout_error" | ||
Timeout = "timeout_error", | ||
StorageAccessDenied = "storage_access_denied" | ||
} | ||
@@ -4,0 +5,0 @@ interface APIError { |
@@ -7,2 +7,3 @@ "use strict"; | ||
ErrorCode["Timeout"] = "timeout_error"; | ||
ErrorCode["StorageAccessDenied"] = "storage_access_denied"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
@@ -17,2 +18,9 @@ const allErrors = { | ||
}, | ||
[ErrorCode.StorageAccessDenied]: { | ||
httpStatusCode: 400, | ||
title: "Storage Access Denied", | ||
code: "storage_access_denied", | ||
description: "Failed to upload the screenshot to the storage since access was denied. Check the API keys you specify when using the storage integration.", | ||
documentationUrl: "https://screenshotone.com/docs/errors/storage-access-denied/", | ||
}, | ||
}; | ||
@@ -19,0 +27,0 @@ function APIErrorByCode(code) { |
{ | ||
"name": "screenshotone-errors", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Errors produced by the ScreenshotOne API.", | ||
@@ -6,0 +6,0 @@ "repository": { |
export enum ErrorCode { | ||
Timeout = "timeout_error", | ||
StorageAccessDenied = "storage_access_denied", | ||
} | ||
@@ -22,2 +23,11 @@ | ||
}, | ||
[ErrorCode.StorageAccessDenied]: { | ||
httpStatusCode: 400, | ||
title: "Storage Access Denied", | ||
code: "storage_access_denied", | ||
description: | ||
"Failed to upload the screenshot to the storage since access was denied. Check the API keys you specify when using the storage integration.", | ||
documentationUrl: | ||
"https://screenshotone.com/docs/errors/storage-access-denied/", | ||
}, | ||
}; | ||
@@ -24,0 +34,0 @@ |
7162
116