Set status code

Closes #5