1) sending proper error code to client in case the request to the http server cannot be served