Replaced hard coded content type values with constants from MediaType class.