Use proper MIME type for json error response