UNPKG

@humanmark/sdk-js

Version:

Browser-native JavaScript SDK for Humanmark human verification challenges

41 lines 1.23 kB
/** * HTTP status code constants * Standard HTTP status codes used throughout the SDK */ export declare const HTTP_STATUS: { /** The server cannot or will not process the request due to an apparent client error */ readonly BAD_REQUEST: 400; /** Invalid or missing API key */ readonly UNAUTHORIZED: 401; /** API key does not have access to this resource */ readonly FORBIDDEN: 403; /** Server timeout waiting for the request */ readonly REQUEST_TIMEOUT: 408; /** The requested content has been permanently deleted */ readonly GONE: 410; /** User has sent too many requests in a given amount of time */ readonly TOO_MANY_REQUESTS: 429; /** Server has encountered a situation it doesn't know how to handle */ readonly INTERNAL_SERVER_ERROR: 500; }; /** * HTTP method constants */ export declare const HTTP_METHODS: { readonly GET: "GET"; readonly POST: "POST"; }; /** * Common HTTP headers */ export declare const HTTP_HEADERS: { readonly CONTENT_TYPE: "Content-Type"; readonly API_KEY: "hm-api-key"; }; /** * Content type values */ export declare const CONTENT_TYPES: { readonly JSON: "application/json"; }; //# sourceMappingURL=http.d.ts.map