     xhr.open @options.method, @options.url, true
 
     handleError = =>
-      @errorProcessing file, xhr.responseText || "Server responded with #{xhr.status} code."
+      @errorProcessing file, xhr.responseText || @options.dictResponseError.replace("{{statusCode}}", xhr.status), xhr
 
     xhr.onload = (e) =>
       unless 200 <= xhr.status < 300

    # If the file doesn't match the file type.
    dictInvalidFileType: "You can't upload files of this type."


    # If `done()` is called without argument the file is accepted
    # If you call it with an error message, the file is rejected

    if file.size > @options.maxFilesize * 1024 * 1024
      done "File is too big (" + (Math.round(file.size / 1024 / 10.24) / 100) + "MB). Max filesize: " + @options.maxFilesize + "MB"
    else
      @options.accept.call this, file, done

  addFile: (file) ->
