rag-context-optimizer / frontend /node_modules /next /dist /client /components /http-access-fallback /http-access-fallback.d.ts
Download frontend/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.d.ts from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 914 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.d.ts
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.d.ts
-
curl -L -o http-access-fallback.d.ts https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.d.ts
914 Bytes
| export declare const HTTPAccessErrorStatus: { | |
| NOT_FOUND: number; | |
| FORBIDDEN: number; | |
| UNAUTHORIZED: number; | |
| }; | |
| export declare const HTTP_ERROR_FALLBACK_ERROR_CODE = "NEXT_HTTP_ERROR_FALLBACK"; | |
| export type HTTPAccessFallbackError = Error & { | |
| digest: `${typeof HTTP_ERROR_FALLBACK_ERROR_CODE};${string}`; | |
| }; | |
| /** | |
| * Checks an error to determine if it's an error generated by | |
| * the HTTP navigation APIs `notFound()`, `forbidden()` or `unauthorized()`. | |
| * | |
| * @param error the error that may reference a HTTP access error | |
| * @returns true if the error is a HTTP access error | |
| */ | |
| export declare function isHTTPAccessFallbackError(error: unknown): error is HTTPAccessFallbackError; | |
| export declare function getAccessFallbackHTTPStatus(error: HTTPAccessFallbackError): number; | |
| export declare function getAccessFallbackErrorTypeByStatus(status: number): 'not-found' | 'forbidden' | 'unauthorized' | undefined; | |