(status: number)
| 242 | } |
| 243 | |
| 244 | function getWorkflowErrorStatus(status: number): number { |
| 245 | return [400, 401, 403, 404, 408, 409, 413, 429, 499, 503].includes(status) ? status : 500 |
| 246 | } |
| 247 | |
| 248 | function getWorkflowErrorCode(status: number, executeResult: Record<string, unknown>): ErrorCode { |
| 249 | if (status === 499) return ErrorCode.ConnectionClosed |