try IdHTTP.Get('http://forum.antichat.ru/notfound') except on EIdHTTPException do ShowMessage('Not Found!'); end;