Only show error on error ajax call