@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
1 lines • 695 B
Source Map (JSON)
{"version":3,"file":"RefExpiredError.cjs","sources":["../../../src/errors/RefExpiredError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefExpiredErrorAPIResponse = {\n\ttype: \"api_validation_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 410 for expired refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefExpiredError<\n\tTResponse = RefExpiredErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":["ForbiddenError"],"mappings":";;;AAWM,MAAO,wBAEHA,eAAAA,eAAyB;AAAG;;"}