Class HttpStatusCodeException

All Implemented Interfaces:

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

    • HttpStatusCodeException

      public HttpStatusCodeException( 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)