Skip to content

Commit 763651d

Browse files
authored
fix: Update deprecated HTTP status code (topoteretes#2185)
<!-- .github/pull_request_template.md --> ## Description Fix deprecated HTTP status usage ## Acceptance Criteria <!-- * Key requirements to the new feature or modification; * Proof that the changes work and meet the requirements; --> ## Type of Change <!-- Please check the relevant option --> - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Code refactoring - [ ] Other (please specify): ## Screenshots <!-- ADD SCREENSHOT OF LOCAL TESTS PASSING--> ## Pre-submission Checklist <!-- Please check all boxes that apply before submitting your PR --> - [ ] **I have tested my changes thoroughly before submitting this PR** (See `CONTRIBUTING.md`) - [ ] **This PR contains minimal changes necessary to address the issue/feature** - [ ] My code follows the project's coding standards and style guidelines - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation (if applicable) - [ ] All new and existing tests pass - [ ] I have searched existing PRs to ensure this change hasn't been submitted already - [ ] I have linked any relevant issues in the description - [ ] My commits have clear and descriptive messages ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated error handling status code for improved HTTP compliance in collection error responses. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 58da79c + 589bfde commit 763651d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cognee/infrastructure/databases/vector/exceptions/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(
1515
self,
1616
message,
1717
name: str = "CollectionNotFoundError",
18-
status_code: int = status.HTTP_422_UNPROCESSABLE_ENTITY,
18+
status_code: int = status.HTTP_422_UNPROCESSABLE_CONTENT,
1919
log=True,
2020
log_level="DEBUG",
2121
):

0 commit comments

Comments
 (0)