Class HttpStatusCodeException

All Implemented Interfaces:
Serializable

@Internal public class HttpStatusCodeException extends CouchbaseException
See Also:
  • Constructor Details

    • HttpStatusCodeException

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

    • 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)
    • couchbaseResponseStatus

      public static ResponseStatus couchbaseResponseStatus(Throwable t)