File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " screenshotone-errors" ,
33 "homepage" : " https://screenshotone.com" ,
4- "version" : " 1.0.20 " ,
4+ "version" : " 1.0.21 " ,
55 "description" : " Errors produced by the ScreenshotOne API." ,
66 "repository" : {
77 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export enum ErrorCode {
2424 InvalidCookieParameter = "invalid_cookie_parameter" ,
2525 InvalidHeaderParameter = "invalid_header_parameter" ,
2626 MatchedFailedRequest = "matched_failed_request" ,
27+ RequestBodyTooLarge = "request_body_too_large" ,
2728}
2829
2930interface APIError {
@@ -35,6 +36,15 @@ interface APIError {
3536}
3637
3738const allErrors : Record < ErrorCode , APIError > = {
39+ [ ErrorCode . RequestBodyTooLarge ] : {
40+ httpStatusCode : 413 ,
41+ title : "Request Body Too Large" ,
42+ code : "request_body_too_large" ,
43+ description :
44+ "The request body is too large. Please, reduce the size of the request body or reach out to `support@screenshotone.com` for assistance." ,
45+ documentationUrl :
46+ "https://screenshotone.com/docs/errors/request-body-too-large/" ,
47+ } ,
3848 [ ErrorCode . MatchedFailedRequest ] : {
3949 httpStatusCode : 500 ,
4050 title : "Matched Failed Request" ,
You can’t perform that action at this time.
0 commit comments