screenshotone-errors
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,6 +5,6 @@ declare enum ErrorCode { | ||
interface APIError { | ||
HTTPStatusCode: number; | ||
ErrorCode: string; | ||
ErrorDescription: string; | ||
ErrorDocumentationLink: string; | ||
httpStatusCode: number; | ||
code: string; | ||
description: string; | ||
documentationUrl: string; | ||
} | ||
@@ -11,0 +11,0 @@ export declare function APIErrorByCode(code: string): APIError | null; |
@@ -10,6 +10,6 @@ "use strict"; | ||
[ErrorCode.Timeout]: { | ||
HTTPStatusCode: 500, | ||
ErrorCode: "timeout_error", | ||
ErrorDescription: "The screenshot couldn't be taken within the specified timeout. Either the site doesn't respond quickly, or rendering takes longer than expected. Play with the `timeout` or the `navigation_timeout` options or reach the support for the investigation.", | ||
ErrorDocumentationLink: "https://screenshotone.com/docs/errors/", | ||
httpStatusCode: 500, | ||
code: "timeout_error", | ||
description: "The screenshot couldn't be taken within the specified timeout. Either the site doesn't respond quickly, or rendering takes longer than expected. Play with the `timeout` or the `navigation_timeout` options or reach the support for the investigation.", | ||
documentationUrl: "https://screenshotone.com/docs/errors/", | ||
}, | ||
@@ -16,0 +16,0 @@ }; |
{ | ||
"name": "screenshotone-errors", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Errors produced by the ScreenshotOne API.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -6,6 +6,6 @@ enum ErrorCode { | ||
interface APIError { | ||
HTTPStatusCode: number; | ||
ErrorCode: string; | ||
ErrorDescription: string; | ||
ErrorDocumentationLink: string; | ||
httpStatusCode: number; | ||
code: string; | ||
description: string; | ||
documentationUrl: string; | ||
} | ||
@@ -15,7 +15,7 @@ | ||
[ErrorCode.Timeout]: { | ||
HTTPStatusCode: 500, | ||
ErrorCode: "timeout_error", | ||
ErrorDescription: | ||
httpStatusCode: 500, | ||
code: "timeout_error", | ||
description: | ||
"The screenshot couldn't be taken within the specified timeout. Either the site doesn't respond quickly, or rendering takes longer than expected. Play with the `timeout` or the `navigation_timeout` options or reach the support for the investigation.", | ||
ErrorDocumentationLink: "https://screenshotone.com/docs/errors/", | ||
documentationUrl: "https://screenshotone.com/docs/errors/", | ||
}, | ||
@@ -22,0 +22,0 @@ }; |
5878