use responseJSON if available in error handling. Reformat using  tab width 4.