[http] add function for response 404 and 500