docs: private Exception checkForResponse() throws NoResponseException {
          switch (state) {
          case Initial:
          case NoResponse:
          case RequestSent:
              throw NoResponseException.newWith(connection, waitFor);
          case Success:
              return null;
          case Failure:
              return getException();
          default:
              throw new AssertionError("Unknown state " + state);
          }
      }