deepl-client
Version:
A client to interact with the DeepL API.
14 lines (13 loc) • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiError = void 0;
var ApiError;
(function (ApiError) {
ApiError[ApiError["400 - Bad request. Please check error message and your parameters."] = 400] = "400 - Bad request. Please check error message and your parameters.";
ApiError[ApiError["403 - Authorization failed. Please supply a valid auth_key parameter."] = 403] = "403 - Authorization failed. Please supply a valid auth_key parameter.";
ApiError[ApiError["404 - The requested resource could not be found."] = 404] = "404 - The requested resource could not be found.";
ApiError[ApiError["413 - The request size exceeds the limit."] = 413] = "413 - The request size exceeds the limit.";
ApiError[ApiError["429 - Too many requests. Please wait and resend your request."] = 429] = "429 - Too many requests. Please wait and resend your request.";
ApiError[ApiError["456 - Quota exceeded. The character limit has been reached."] = 456] = "456 - Quota exceeded. The character limit has been reached.";
ApiError[ApiError["503 - Resource currently unavailable. Try again later."] = 503] = "503 - Resource currently unavailable. Try again later.";
})(ApiError = exports.ApiError || (exports.ApiError = {}));