You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (cause == Cause.BAD_REQUEST) { return"The Web API request failed. Wrong data format was provided."; }
88
-
elseif (cause == Cause.FORBIDDEN) { return"The Web API request failed for security reasons. The supplied Web API key was rejected by Steam. Ensure that the supplied Web API key is valid."; }
89
-
elseif (cause == Cause.NOT_FOUND) { return"Failed to found requested resource."; }
90
-
elseif (cause == Cause.TOO_MANY_REQUESTS) { return"The Web API request rejected. Because too many requests were processed."; }
91
-
elseif (cause == Cause.INTERNAL_ERROR) { return"The Web API request failed with an internal error."; }
92
-
elseif (cause == Cause.BAD_GATEWAY) { return"The Web API gateway failed to route request."; }
93
-
elseif (cause == Cause.SERVICE_UNAVAILABLE) { return"The Web API service unavailable."; }
94
-
elseif (cause == Cause.MAPPING) {return"The JSON response could not be parsed or mapped to the designated POJO. The most likely cause for this is that"
95
-
+ " the Steam API itself changed. Check for newer versions of this library to compensate for this."; }
39
+
if (statusCode == HttpStatus.BAD_REQUEST) { return"The Web API request failed. Wrong data format was provided."; }
40
+
elseif (statusCode == HttpStatus.FORBIDDEN) { return"The Web API request failed for security reasons. The supplied Web API key was rejected by Steam. Ensure that the supplied Web API key is valid."; }
41
+
elseif (statusCode == HttpStatus.NOT_FOUND) { return"Failed to found requested resource."; }
42
+
elseif (statusCode == HttpStatus.TOO_MANY_REQUESTS) { return"The Web API request rejected. Because too many requests were processed."; }
43
+
elseif (statusCode == HttpStatus.INTERNAL_SERVER_ERROR) { return"The Web API request failed with an internal error."; }
44
+
elseif (statusCode == HttpStatus.BAD_GATEWAY) { return"The Web API gateway failed to route request."; }
45
+
elseif (statusCode == HttpStatus.SERVICE_UNAVAILABLE) { return"The Web API service unavailable."; }
0 commit comments