add code for more http status code checking