/** * Set the HTTP status. This is the status that will be returned by {@link * com.linkedin.restli.client.Response#getStatus()} * * <p>An {@link IllegalArgumentException} is thrown if the status is not in the range [200, 300). * * @param status the HTTP status we want to set * @return */ @Override public MockSuccessfulResponseFutureBuilder<T> setStatus(int status) { if (status < 200 || status >= 300) { throw new IllegalArgumentException("Status must be a 2xx HTTP status!"); } super.setStatus(status); return this; }