Display exceptions in text format for xhr request