HTTP Servers:better error handling