Returns the appropriate http status code
Merge pull request #724 from asosso/patch-2

Returns the appropriate http status code