Read the headers
Request a normal page and an error page, and look for X-Powered-By, Server and framework-specific headers.
curl -sI https://example.com/ | grep -iE 'x-powered-by|^server'
curl -sI https://example.com/this-page-does-not-exist | grep -iE 'x-powered-by|^server'