I'm always curious why the default behavior of many server frameworks exposes so much information. I think it should just drop the connection by default for this error.
But many websites fail to do so.
But if you were the developer of this code, it's useful to pinpoint what went wrong and where.
This is a common "HN Hug-of-Death" ;)