Use jQuery 1.10 and .fail() method instead of .error() on ajax promises