Handle response headers to check for HTTP status codes