return `Content-Type: application/json` in `ErrorHandler

The `ErrorHandler` defaults to returning `text/plain` despite the fact that it actually returns JSON. I've set the `Content-Type` header to `application/json; charset=utf-8`.