 
     return deferred
 
-
 module.exports = Api

    input =
      headers: headers
      data: input

    if options.withCredentials == true
      input.withCredentials = true

    ajaxRequest = @._ajaxRequest(url, input)

    # Decorate the deferred object with an abort method which cancels the ajax request and sets the internal
    # state of the deferred object to aborted, which prevents the deferred object from being resolved

            # TODO: Notify the client that the API server is down temporarily

          else if textStatus == "error" && jqXHR.status == 0
            if trial > maxRetries
              rejectStatus({ type: "AjaxError", details: {jqXHR: jqXHR}})
            else
              # Backoff/Retry
