added check for all http request codes closes #34