span> -&gt;</span>
    <span class="hljs-property">@request</span>(args...).<span class="hljs-keyword">then</span>(_.bind(<span class="hljs-property">@handleSuccess</span>, @)).fail(<span class="hljs-property">@handleFailure</span>)

  <span class="hljs-attribute">handleSuccess</span>: <span class="hljs-function"><span class="hljs-params">(resp)</span> -&gt;</span>
    <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">'Error in the backend'</span> 