diff --git a/backend/src/utils/errors.ts b/backend/src/utils/errors.ts index 49afb217a..ba5611465 100644 --- a/backend/src/utils/errors.ts +++ b/backend/src/utils/errors.ts @@ -123,4 +123,14 @@ export const SecretNotFoundError = (error?: Partial) => new stack: error?.stack }); +//* ----->[ACTION ERRORS]<----- +export const ActionNotFoundError = (error?: Partial) => new RequestError({ + logLevel: error?.logLevel ?? LogLevel.ERROR, + statusCode: error?.statusCode ?? 404, + type: error?.type ?? 'action_not_found_error', + message: error?.message ?? 'The requested action was not found', + context: error?.context, + stack: error?.stack +}); + //* ----->[MISC ERRORS]<-----