Skip to content

Commit 8c0aeb1

Browse files
committed
Updated description for /livenes endpoint
1 parent f13abb3 commit 8c0aeb1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/endpoints/health.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ async def liveness_probe_get_method(
185185
### Parameters:
186186
- auth: Authentication tuple from the auth dependency (used by middleware).
187187
188+
### Raises:
189+
- HTTPException: with status 401 for unauthorized access.
190+
- HTTPException: with status 403 if permission is denied.
191+
- HTTPException: with status 500 and a detail object containing `response`
192+
and `cause` when service configuration is wrong or incomplete.
193+
- HTTPException: with status 503 and a detail object containing `response`
194+
and `cause` when unable to connect to Llama Stack.
195+
188196
### Returns:
189197
- LivenessResponse: Indicates that the service is alive.
190198
"""

0 commit comments

Comments
 (0)