Display exceptions in text format for xhr request
Merge pull request #11960 from kirs/xhr-errors

Show exceptions in text format for xhr requests