Class HttpError

    • Constructor Detail

      • HttpError

        public HttpError()
    • Method Detail

      • withDropConnection

        public HttpError withDropConnection​(Boolean dropConnection)
        Forces the connection to be dropped without any response being returned
        Parameters:
        dropConnection - if true the connection is drop without any response being returned
      • getDropConnection

        public Boolean getDropConnection()
      • withResponseBytes

        public HttpError withResponseBytes​(byte[] responseBytes)
        The raw response to be returned, allowing the expectation to specify any invalid response as a raw byte[]
        Parameters:
        responseBytes - the exact bytes that will be returned
      • getResponseBytes

        public byte[] getResponseBytes()