Respond with correct media type for API errors