add error response for media types errors