code: private static void validateFormatForViewAction(Format format) throws ApiException {
  		switch (format) {
  		case JSON:
  		case JSONP:
  		case XML:
  		case HTML:
  			return;
  		default:
  			throw new ApiException(ApiException.Type.BAD_FORMAT, "The format OTHER should not be used with views and actions.");
  		}
  	}
docs: Validates that the given format is supported for views and actions.
  
  @param format the format to validate.
  @throws ApiException if the format is not valid.
  @see #convertViewActionApiResponse(Format, String, ApiResponse)