api_exit codes