fix showing return status for curl random error