(no-ticket) Plain text error messages for ajax requests.

Change-Id: I6a76f414f179885a96cff38f15d5a788deb87809
Merge "(no-ticket) Plain text error messages for ajax requests."