code: public static void badParamExAssertTrue(boolean cond, IApiError apiError) throws Http400Exception {
  		if (!cond) {
  			throw new Http400Exception(apiError != null ? apiError : new GenericApiError());
  		}
  	}
docs: /* generic situations