Make status code accessible and fix headers

Closes #83.