Skip to content

Commit e11e56c

Browse files
committed
Updated description for /shields endpoint
1 parent 5bb465b commit e11e56c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/app/endpoints/shields.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,16 @@ async def shields_endpoint_handler(
5454
- request: The incoming HTTP request (used by middleware).
5555
- auth: Authentication tuple from the auth dependency (used by middleware).
5656
57+
### Raises:
58+
- HTTPException: with status 401 for unauthorized access.
59+
- HTTPException: with status 403 if permission is denied.
60+
- HTTPException: with status 500 and a detail object containing `response`
61+
and `cause` when service configuration is wrong or incomplete.
62+
- HTTPException: with status 503 and a detail object containing `response`
63+
and `cause` when unable to connect to Llama Stack.
64+
5765
### Returns:
5866
- ShieldsResponse: An object containing the list of available shields.
59-
60-
### Raises:
61-
- HTTPException: If unable to connect to the Llama Stack server or if
62-
shield retrieval fails for any reason.
6367
"""
6468
# Used only by the middleware
6569
_ = auth

0 commit comments

Comments
 (0)