[core] fix error handling for content type