Fix `$.ajax` error callback