extract status code from headers