[tmpo] remove content-encoding header when returning an error