Improve content negotiation in ResourceController