Return status code in result.