       @record.trigger("ajaxSuccess", @record, status, xhr)
 
       success?(@record)
+
+  errorResponse: (params = {}) =>
+    error = params.error
+
+    (jqXHR, statusText, error) =>
+      @record.trigger("ajaxError", @record, jqXHR, statusText, error)
+
+      error?(@record)
 
 # Ajax endpoint
 Model.host = ""

          data:    JSON.stringify(@record)
          url:     @base
          success: @recordResponse(params)

  update: (params) ->
    @send params,

          data:    JSON.stringify(@record)
          url:     @url
          success: @recordResponse(params)
          error: @errorResponse(params)

  
  destroy: (params) ->
    @send params,
          type:    "DELETE"
          url:     @url
          success: @blankResponse(params)
          error: @errorResponse(params)
  
  # Private

  recordResponse: (params = {}) =>
    success = params.success
  
