Skip to content

Commit 78bfc24

Browse files
committed
cleanup doc
1 parent b2a536f commit 78bfc24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/web/server/src/simcore_service_webserver/director_v2/_controller/_rest_exceptions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ async def _handler_director_service_error_as_503_or_4xx(
3131
request: web.Request, exception: Exception
3232
) -> web.Response:
3333
"""
34-
Handles DirectorV2ServiceError exceptions by returning a 503 Service Unavailable if it's a server error (5XX),
35-
or a 4XX client error if it's a client error (4XX).
34+
Handles DirectorV2ServiceError exceptions by responding with
35+
- 503 Service Unavailable if the directorv2 reponds with a server error (5XX),
36+
- or bypass with the same error if it's a client error (4XX).
3637
"""
3738
assert isinstance(exception, DirectorV2ServiceError) # nosec
3839
assert status_codes_utils.is_error(

0 commit comments

Comments
 (0)