title: How do I handle invalid URI in POCO
body: <p>I want to handle a invalid URI client request in <code>createRequestHandler(HTTPServerRequest&amp; request)</code> function in subclassed <code>HTTPRequestHandlerFactory</code>.</p>
  
  <p>I want to send response that the URI is invalid with error code </p>
  
  <blockquote>
    <p>HTTP_NOT_FOUND ( 404 ).</p>
  </blockquote>
  
  <pre><code>RequestHandler * RequestHandlerFactory::createRequestHandler(const Poco::Net::HTTPServerRequest&amp; request)
  {
    // -- handleRequest -- 
  
    if ( request.getURI() != ExpectedURI ) 
    {
      // How do I send response to client that the URI is invalid?
      // Example I need to send HTTP_NOT_FOUND 
    }
  }
  </code></pre>