The error message "the web server version is specified within the HTTP header" appears

The error message “the web server version is specified within the HTTP header” appears.

What to do?

Can you give more details as to when this error appears and share the code that is causing the error?