package com.braintreepayments.api.interfaces;

/**
 * Communicates responses from a HTTP request on the main thread.
 * One and only one method will be invoked in response to a request.
 */
public interface HttpResponseCallback {

    /**
     * @param responseBody response to the successful HTTP request.
     * Successful is defined as requests with the response code
     * {@link java.net.HttpURLConnection#HTTP_OK}
     */
    void success(String responseBody);

    /**
     * @param exception error that caused the request to fail.
     */
    void failure(Exception exception);
}

@@ -306,16 +306,23 @@
 .%0A     *
+       
  Success
@@ -377,16 +377,23 @@
 e%0A     *
+       
  %7B@link 
@@ -427,16 +427,146 @@
 HTTP_OK%7D
+,%0A     *        %7B@link java.net.HttpURLConnection#HTTP_CREATED%7D%0A     *        or %7B@link java.net.HttpURLConnection#HTTP_ACCEPTED%7D.
 %0A     */

Update HttpResponseCallback#success javadac