Skip to content

Commit 0a108cc

Browse files
committed
rerun nuew prompt
1 parent d4dee86 commit 0a108cc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

services/web/server/src/simcore_service_webserver/catalog/_controller_rest_exceptions.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,27 +87,33 @@ async def _handler_catalog_client_errors(
8787
RemoteMethodNotRegisteredError: HttpErrorInfo(
8888
status.HTTP_503_SERVICE_UNAVAILABLE,
8989
user_message(
90-
"Catalog service method unavailable. Please try again shortly.", _version=1
90+
"The catalog service is temporarily unavailable. Please try again later.",
91+
_version=2,
9192
),
9293
),
9394
CatalogForbiddenError: HttpErrorInfo(
9495
status.HTTP_403_FORBIDDEN,
9596
user_message(
96-
"You do not have permission to access this catalog item.", _version=1
97+
"Access denied: You don't have permission to view this catalog item.",
98+
_version=2,
9799
),
98100
),
99101
CatalogItemNotFoundError: HttpErrorInfo(
100102
status.HTTP_404_NOT_FOUND,
101-
user_message("The requested catalog item could not be found.", _version=1),
103+
user_message(
104+
"This catalog item does not exist or has been removed.", _version=2
105+
),
102106
),
103107
DefaultPricingPlanNotFoundError: HttpErrorInfo(
104108
status.HTTP_404_NOT_FOUND,
105-
user_message("The default pricing plan could not be found.", _version=1),
109+
user_message(
110+
"No default pricing plan is available for this operation.", _version=2
111+
),
106112
),
107113
DefaultPricingUnitForServiceNotFoundError: HttpErrorInfo(
108114
status.HTTP_404_NOT_FOUND,
109115
user_message(
110-
"The default pricing unit for this service could not be found.", _version=1
116+
"No default pricing unit is defined for this service.", _version=2
111117
),
112118
),
113119
}

0 commit comments

Comments
 (0)