Updated HTTP status check