UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

1 lines 700 B
{"version":3,"file":"RefNotFoundError.cjs","sources":["../../../src/errors/RefNotFoundError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefNotFoundErrorAPIResponse = {\n\ttype: \"api_notfound_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 404 for not found refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefNotFoundError<\n\tTResponse = RefNotFoundErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":["ForbiddenError"],"mappings":";;;AAWM,MAAO,yBAEHA,eAAAA,eAAyB;AAAG;;"}