File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments