Skip to content

Commit ecd993a

Browse files
committed
LCORE-1273: Replaced HTTP status code
1 parent bb1301f commit ecd993a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/models/responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ def __init__(
22142214
super().__init__(
22152215
response=response,
22162216
cause=cause,
2217-
status_code=status.HTTP_413_REQUEST_ENTITY_TOO_LARGE,
2217+
status_code=status.HTTP_413_CONTENT_TOO_LARGE,
22182218
)
22192219

22202220

tests/unit/models/responses/test_error_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def test_constructor_with_default_response(self) -> None:
687687
cause="The prompt exceeds the maximum allowed length."
688688
)
689689
assert isinstance(response, AbstractErrorResponse)
690-
assert response.status_code == status.HTTP_413_REQUEST_ENTITY_TOO_LARGE
690+
assert response.status_code == status.HTTP_413_CONTENT_TOO_LARGE
691691
assert isinstance(response.detail, DetailModel)
692692
assert response.detail.response == "Prompt is too long"
693693
assert response.detail.cause == "The prompt exceeds the maximum allowed length."

0 commit comments

Comments
 (0)