Correctly pass error to ajax:error.