extract status code if possible