unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
24 lines (23 loc) • 1.12 kB
TypeScript
export declare const emptyResponse: {
readonly description: "This response has no body.";
};
declare const standardResponses: {
readonly 400: {
readonly description: "The request data does not match what we expect.";
};
readonly 401: {
readonly description: "Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.";
};
readonly 403: {
readonly description: "User credentials are valid but does not have enough privileges to execute this operation";
};
readonly 404: {
readonly description: "The requested resource was not found.";
};
readonly 409: {
readonly description: "The provided resource can not be created or updated because it would conflict with the current state of the resource or with an already existing resource, respectively.";
};
};
declare type StandardResponses = typeof standardResponses;
export declare const getStandardResponses: (...statusCodes: (keyof StandardResponses)[]) => Partial<StandardResponses>;
export {};