HttpClientOperations extends HttpOperations<NettyInbound, NettyOutbound> implements HttpClientResponse, HttpClientRequest { @Override public HttpResponseStatus status() { ResponseState responseState = this.responseState; if (responseState != null) { return responseState.response.status(); } throw new IllegalStateException("Trying to access status() while missing response"); } HttpClientOperations(HttpClientOperations replaced);   HttpClientOperations(Connection c, ConnectionObserver listener, ClientCookieEncoder encoder, ClientCookieDecoder decoder); @Override HttpClientRequest addCookie(Cookie cookie); @Override HttpClientOperations addHandlerLast(ChannelHandler handler); @Override HttpClientOperations addHandlerLast(String name, ChannelHandler handler); @Override HttpClientOperations addHandlerFirst(ChannelHandler handler); @Override HttpClientOperations addHandlerFirst(String name, ChannelHandler handler); @Override HttpClientOperations addHandler(ChannelHandler handler); @Override @SuppressWarnings("FutureReturnValueIgnored") HttpClientOperations addHandler(String name, ChannelHandler handler); @Override HttpClientOperations replaceHandler(String name, ChannelHandler handler); @Override HttpClientOperations removeHandler(String name); @Override HttpClientRequest addHeader(CharSequence name, CharSequence value); @Override InetSocketAddress address(); void chunkedTransfer(boolean chunked); @Override HttpClientOperations withConnection(Consumer<? super Connection> withConnection); @Override Map<CharSequence, Set<Cookie>> cookies(); @Override HttpClientRequest header(CharSequence name, CharSequence value); @Override HttpClientRequest headers(HttpHeaders headers); @Override boolean isFollowRedirect(); @Override HttpClientRequest responseTimeout(Duration timeout); @Override boolean isKeepAlive(); @Override boolean isWebsocket(); @Override HttpMethod method(); @Override final HttpClientOperations onDispose(Disposable onDispose); @Override ContextView currentContextView(); @Override String[] redirectedFrom(); @Override HttpHeaders requestHeaders(); @Override HttpHeaders responseHeaders(); @Override NettyOutbound send(Publisher<? extends ByteBuf> source); @Override HttpResponseStatus status(); @Override final String uri(); @Override final String fullPath(); @Override String resourceUrl(); @Override final HttpVersion version();  }
@Test public void testStatus() { doTestStatus(HttpResponseStatus.OK); doTestStatus(new HttpResponseStatus(200, "Some custom reason phrase for 200 status code")); }