LearnBoost/soda — Issue #37: http status code of page?
Author: quangv
Created: 2012-01-11 21:48:00+00:00
State: open

Is there anyway to get the statusCode of the current page?

I thought that you could do something like this

```
client = require('soda').createClient
host : 'localhost'
port : 4444
url : 'http://return500error'
browser : 'firefox'

client
.chain
.session()
.open 'http://return500error', (body, res)->
assert.equal(500, res.statusCode)
.end(->)
```

but alas, res.statusCode seems to be between the client and Selenium server... not the HTTP returned from the actual browser page...

any help would be appreciated.

(note, soda might not even return this information, if it's a definitive no, I'll stop searching...)
Thanks! :)