From 45add5a9791672413945d59e1fd4e4d0c0764d8e Mon Sep 17 00:00:00 2001 From: tarsil Date: Thu, 9 Jan 2025 13:06:31 +0100 Subject: [PATCH] Add response container status code --- esmerald/datastructures/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/esmerald/datastructures/base.py b/esmerald/datastructures/base.py index 24644983..7e22b732 100644 --- a/esmerald/datastructures/base.py +++ b/esmerald/datastructures/base.py @@ -111,6 +111,7 @@ class ResponseContainer(BaseModel, ABC, Generic[R]): background: Optional[Union[BackgroundTask, BackgroundTasks]] = None headers: Dict[str, Any] = {} cookies: List[Cookie] = [] + status_code: Optional[int] = None @abstractmethod def to_response(