catching http status code