Skip to content

Commit f2f6205

Browse files
authored
Merge pull request #147 from bf2fc6cc711aee1a0c2a/error
fix: improve error messages for error handling
2 parents 72419d7 + 15372f5 commit f2f6205

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/rhoas/src/main/java/com/openshift/cloud/controllers/ConditionUtil.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ public static String getStandarizedErrorMessage(int statusCode) {
257257
case 503: // SC_UNAVAILABILE
258258
return "Service unavailable at the moment";
259259
case 500: // SC_INTERNAL_SERVER_ERROR:
260-
return "Unknown server error.";
260+
return "Unknown server error";
261261
case 400: // HttpStatus.SC_BAD_REQUEST:
262-
return "Invalid request";
262+
return "Provided user input is invalid";
263263
case 401: // HttpStatus.SC_UNAUTHORIZED:
264-
return "Auth Token is invalid.";
264+
return "Cannot authenticate user with the service";
265265
case 403: // HttpStatus.SC_FORBIDDEN:
266266
return "User not authorized to access the service";
267267
default:

0 commit comments

Comments
 (0)