Bug 972055 - ensure error responses are json, not html; r=telliott