Skip to content

Commit

Permalink
Add response container status code
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jan 9, 2025
1 parent 6ac2c9f commit 45add5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esmerald/datastructures/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 45add5a

Please sign in to comment.