{"record":{"id":"c0b59643a9fb7c38","repo":"FlowiseAI/Flowise","slug":"http-error-res-status-res-statustext","errorCode":null,"errorMessage":"HTTP Error ${res.status}: ${res.statusText}","messagePattern":"HTTP Error (.+?): (.+?)","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/tools/RequestsDelete/core.ts","lineNumber":176,"sourceCode":"                console.warn('Failed to process queryParamsSchema:', error)\n            }\n        } else if (params.queryParams && Object.keys(params.queryParams).length > 0) {\n            // Fallback: treat all parameters as query parameters if no schema is defined\n            const url = new URL(finalUrl)\n            Object.entries(params.queryParams).forEach(([key, value]) => {\n                url.searchParams.append(key, String(value))\n            })\n            finalUrl = url.toString()\n        }\n\n        try {\n            const res = await secureFetch(finalUrl, {\n                method: 'DELETE',\n                headers: requestHeaders\n            })\n\n            if (!res.ok) {\n                throw new Error(`HTTP Error ${res.status}: ${res.statusText}`)\n            }\n\n            const text = await res.text()\n            return text.slice(0, this.maxOutputLength)\n        } catch (error) {\n            throw new Error(`Failed to make DELETE request: ${error instanceof Error ? error.message : 'Unknown error'}`)\n        }\n    }\n}\n","sourceCodeStart":158,"sourceCodeEnd":186,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/tools/RequestsDelete/core.ts#L158-L186","documentation":"Thrown by RequestsDelete tool's _call when secureFetch returns a response whose ok flag is false, i.e. an HTTP status outside the 2xx range. The message includes the numeric status and statusText (e.g. 'HTTP Error 404: Not Found'). This is the canonical 'the server rejected the DELETE' signal.","triggerScenarios":"Target resource does not exist (404); missing/invalid auth credentials (401/403); the resource is already deleted (410); rate limited (429); server error (5xx); wrong URL/method not allowed by the server (405); trying to delete a resource the API does not allow.","commonSituations":"Expired or missing auth token; URL points to a resource already removed; the endpoint expects a different HTTP method; CORS/server policy rejects the request; transient 5xx outage.","solutions":["Check the status code: 401/403 -> fix auth headers; 404 -> verify the URL/resource exists; 405 -> confirm DELETE is supported; 5xx -> retry or contact the API provider.","Ensure required headers (Authorization, Content-Type, custom API keys) are set on the node.","Confirm the URL is correct and the resource has not already been deleted.","For transient 5xx/429, retry with backoff."],"exampleFix":"// before: missing auth -> 401\nawait tool._call({})\n// after\n// (configure headers on the node or pass at construction)\nconst tool = new RequestsDelete({ name: 'del', url: 'https://api.example.com/x', headers: { Authorization: 'Bearer TOKEN' } })\nawait tool._call({})","handlingStrategy":"try-catch","validationCode":"function expectStatusOk(status: number): boolean {\n  return status >= 200 && status < 300\n}\n// (this error originates server-side; pre-validation is limited to ensuring URL + headers)","typeGuard":"null","tryCatchPattern":"try {\n  await tool.call(arg)\n} catch (e) {\n  const m = e instanceof Error ? e.message : ''\n  const match = m.match(/HTTP Error (\\d+):/)\n  if (match) {\n    const status = Number(match[1])\n    if (status === 401 || status === 403) { /* fix auth */ }\n    else if (status === 404) { /* verify resource */ }\n    else if (status >= 500) { /* retry/backoff */ }\n  } else throw e\n}","preventionTips":["Ensure auth headers (Authorization, API keys) are configured.","Confirm the resource exists before deleting (avoid 404).","Retry idempotent deletes on 5xx/429 with exponential backoff.","Verify the endpoint accepts DELETE (avoid 405)."],"tags":["http","network","api-error","status-code"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}