File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/web/server/src/simcore_service_webserver/director_v2/_controller Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments