01b222ced8
* fix(workspaces): allow workspace delete for paid workspaces * feat(gendo): multi region gendo with new api integration and limits * feat(gendo): user credits * feat: adds limits to gendo panel, and terms and conditions link * fix: reworks setting back camera view * feat(gendo): webhook signature verification * fix(gendo): nullability * test(blobstorage): fix test dependency injection --------- Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
21 lines
692 B
TypeScript
21 lines
692 B
TypeScript
import { BaseError } from '@/modules/shared/errors/base'
|
|
|
|
export class GendoRenderRequestError extends BaseError {
|
|
static code = 'GENDO_RENDER_REQUEST_ERROR'
|
|
static defaultMessage = 'Error requesting Gendo render'
|
|
static statusCode = 502
|
|
}
|
|
|
|
export class GendoRenderRequestNotFoundError extends BaseError {
|
|
static code = 'GENDO_RENDER_REQUEST_NOT_FOUND'
|
|
static defaultMessage = 'Gendo render request not found'
|
|
static statusCode = 404
|
|
}
|
|
|
|
export class InsufficientGendoRenderCreditsError extends BaseError {
|
|
static code = 'INSUFFICIENT_GENDO_RENDER_CREDITS'
|
|
static defaultMessage =
|
|
'You do not have enough GendoAi credits left for the operation'
|
|
static statusCode = 402
|
|
}
|