Add return codes to standalone ECPP