String (int statusCode) { if (statusCode == HttpStatus.SC_UNAUTHORIZED) { return TaskBundle.message("failure.login"); } else if (statusCode == HttpStatus.SC_FORBIDDEN) { return TaskBundle.message("failure.permissions"); } return TaskBundle.message("failure.http.error", statusCode, HttpStatus.getStatusText(statusCode)); }