public static Tag outcome(ClientResponse response) {
		try {
			if (response != null) {
				HttpStatus status = response.statusCode();
				if (status.is1xxInformational()) {
					return OUTCOME_INFORMATIONAL;
				}
				if (status.is2xxSuccessful()) {
					return OUTCOME_SUCCESS;
				}
				if (status.is3xxRedirection()) {
					return OUTCOME_REDIRECTION;
				}
				if (status.is4xxClientError()) {
					return OUTCOME_CLIENT_ERROR;
				}
				if (status.is5xxServerError()) {
					return OUTCOME_SERVER_ERROR;
				}
			}
			return OUTCOME_UNKNOWN;
		}
		catch (IllegalArgumentException exc) {
			return OUTCOME_UNKNOWN;
		}
	}
public static Tag outcome ( ClientResponse response ) { try { if ( response != null ) { HttpStatus status = response . statusCode ( ) ; if ( status . is1xxInformational ( ) ) { return OUTCOME_INFORMATIONAL ; } if ( status . is2xxSuccessful ( ) ) { return OUTCOME_SUCCESS ; } if ( status . is3xxRedirection ( ) ) { return OUTCOME_REDIRECTION ; } if ( status . is4xxClientError ( ) ) { return OUTCOME_CLIENT_ERROR ; } if ( status . is5xxServerError ( ) ) { return OUTCOME_SERVER_ERROR ; } } return OUTCOME_UNKNOWN ; } catch ( IllegalArgumentException exc ) { return OUTCOME_UNKNOWN ; } }
Creates an {@code outcome} {@code Tag} derived from the
{@link ClientResponse#statusCode() status} of the given {@code response}.
@param response the response
@return the outcome tag
@since 2.2.0