Fixed issue where 406 status should be returned for unsupported/invalid media type requested.