Index.html in http gateway

Is the practise of the HTTP gateways serving any index.html that is found in response to a request for the directory part of any spec anywhere, or an implementation quirk of the HTTP gateway?