follow RFC 2616 requirements more
implement 504 Gateway Timeout