Class HttpStatusCodeException

    • Constructor Detail

      • HttpStatusCodeException

        public HttpStatusCodeException​(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status,
                                       String content,
                                       Request<?> request,
                                       ErrorContext errorContext)
    • Method Detail

      • responseStatus

        public ResponseStatus responseStatus()
        Returns the Couchbase response status most closely associated with the HTTP status code.
      • httpStatusCode

        public int httpStatusCode()
      • content

        public String content()
        HTTP response body as a String. Possibly empty, but never null.
      • httpResponseBody

        public static String httpResponseBody​(Throwable t)