ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Observability: Improve status codes consistency

Open
#834 0 comments 0 reactions 1 assignee View on GitHub

@vprashrex is already working on this.

Since May 14, 2026.

  • #1090 by @vprashrex — open
Dominant language
Python
Stars
18
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
14

Description

Is your feature request related to a problem?
We need to improve observability in our application. There are inconsistencies in the status codes and error messages returned, which can lead to confusion and misinterpretation of application state.

Describe the solution you'd like

  • Have Claude perform a sanity check on logs, status codes, and error messages.
  • Fix status code inconsistencies in high usage endpoints like LLM call, Collection, Documents, LLM Chain and Evals. Inconsistency like below:
    • Change status code to 404 in app/crud/evaluations/batch.py:47 when success is false.
    • Change status code to 502 in backend/app/crud/assistants.py:68 for invalid responses from upstream servers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.