success(data, textStatus, jqXHR)
A function to be called if the request succeeds.
error(jqXHR, textStatus, errorThrown)
A function to be called if the request fails.
complete(jqXHR, textStatus)
A function to be called when the request finishes
(after success and error callbacks are executed).