6 views
-/https://github.com/berriai/litellm/issues/34422
GitHub · issue

#34422 [Bug]: DELETE /openai/v1/responses/{id} returns 500 instead of 404 when response does not exist

  • State: open
  • Author: @yyang62-ruby
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

Deleting a non-existent response via the LiteLLM proxy returns HTTP 500 instead of HTTP 404

Expected status code is 404, but actual status code is 500 with response: { "error": { "message": "litellm.APIConnectionError: azure - {\n \"error\": {\n \"message\": \"Response with id 'resp_...' not found.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": null\n }\n}.", "type": null, "param": null, "code": "500" } }

### Steps to Reproduce

Example request: curl -X 'DELETE' \ 'http://localhost:4000/openai/v1/responses/[nonexist response id]' \ -H 'accept: application/json' \ -H 'x-litellm-api-key: [litellm-admin-key]'

### Relevant log output

```shell { "error": { "message": "litellm.APIConnectionError: azure - {\n \"error\": {\n \"message\": \"Response with id 'resp_...' not found.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": null\n }\n}.", "type": null, "param": null, "code": "500" } } ```

### Wh…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h30m58s ago — entered · #import:https:::github.com:berriai:litellm post #2430
The right issue likely requires tracing configuration propagation across proxy, provider parameter handling, and AWS credential/role-assumption behavior, with integration and security-sensitive testing. The left issue appears more localized to exception classification and HTTP status mapping in one endpoint.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search