UNPKG

@tsailab/xai

Version:

The loto-xai is an openai nodejs sdk compatible extension library.

43 lines 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.xaiErrorMessages = exports.XAI_ERROR_CODE_400 = exports.SSE_ERROE_CODE = void 0; exports.SSE_ERROE_CODE = 564; exports.XAI_ERROR_CODE_400 = 400; exports.xaiErrorMessages = { 400: 'Bad Request', 401: 'Unauthorized', // RFC 7235 402: 'Payment Required', 403: 'Forbidden', 404: 'Not Found', 405: 'Method Not Allowed', 406: 'Not Acceptable', 407: 'Proxy Authentication Required', // RFC 7235 408: 'Request Timeout', 409: 'Conflict', 410: 'Gone', 411: 'Length Required', 412: 'Precondition Failed', // RFC 7232 413: 'Payload Too Large', // RFC 7231 414: 'URI Too Long', // RFC 7231 415: 'Unsupported Media Type', 416: 'Range Not Satisfiable', // RFC 7233 417: 'Expectation Failed', 418: "I'm a teapot", // RFC 2324 421: 'Misdirected Request', // RFC 7540 426: 'Upgrade Required', 428: 'Precondition Required', // RFC 6585 429: 'Too Many Requests', // RFC 6585 431: 'Request Header Fields Too Large', // RFC 6585 451: 'Unavailable For Legal Reasons', // RFC 7725 500: 'Internal Server Error', 501: 'Not Implemented', 502: 'Bad Gateway', 503: 'Service Unavailable', 504: 'Gateway Timeout', 505: 'HTTP Version Not Supported', 506: 'Variant Also Negotiates', // RFC 2295 510: 'Not Extended', // RFC 2774 511: 'Network Authentication Required', // RFC 6585 564: 'Stream server event api error', }; //# sourceMappingURL=xai-error.codes.js.map