Remove standards config fallback and implement caching
This commit is contained in:
@@ -17,8 +17,9 @@ type Credentials = {
|
||||
export class PrintfulError extends Error {
|
||||
constructor(
|
||||
message: string,
|
||||
public status: number,
|
||||
public upstreamStatus: number,
|
||||
public payload: unknown,
|
||||
public status: number = 502
|
||||
) {
|
||||
super(message);
|
||||
this.name = "PrintfulError";
|
||||
|
||||
@@ -22,8 +22,9 @@ type Credentials = {
|
||||
export class WebflowError extends Error {
|
||||
constructor(
|
||||
message: string,
|
||||
public status: number,
|
||||
public upstreamStatus: number,
|
||||
public payload: unknown,
|
||||
public status: number = 502
|
||||
) {
|
||||
super(message);
|
||||
this.name = "WebflowError";
|
||||
|
||||
Reference in New Issue
Block a user