Fix check response code

Seems to be a copy/paste issue: Response#checkResponseCode(int) should actually use the provided response code, rather than checking only for HTTP_OK