Add http status code support

This PR fixes issue #8