how to catch exceptions from the simpleHTTPServer . ( srry if this sounds ridiculous ) the below is a small code snippet for a basic webserver . every time whenever there is a HTTP GET/POST request i can see the feedback in the terminal . how do i catch those feedbacks ? code snippet: http://codepad.org/eKWUhrnO