@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
23 lines • 839 B
JavaScript
/**
* Shared HTTP retryability constants.
*
* Centralises the status-code lists that were duplicated across
* httpRetryHandler, neurolink.ts, fileDetector.ts, and errorHelpers.
*/
/** Server-side and rate-limiting codes worth retrying. */
export const RETRYABLE_HTTP_STATUS_CODES = [
408, 429, 500, 502, 503, 504,
];
/** Client-error codes where retrying is pointless. */
export const NON_RETRYABLE_HTTP_STATUS_CODES = [
400, 401, 403, 404, 405, 409, 422,
];
/** Check whether an HTTP status code is retryable. */
export function isRetryableStatusCode(code) {
return RETRYABLE_HTTP_STATUS_CODES.includes(code);
}
/** Check whether an HTTP status code is non-retryable. */
export function isNonRetryableStatusCode(code) {
return NON_RETRYABLE_HTTP_STATUS_CODES.includes(code);
}
//# sourceMappingURL=retryability.js.map