tests: fix http-bad-server expected errors for python 3.10
The format of the error message changed with this version of Python. This also removes obsolete Python 3 checks.
Edited by Euxane TRAN-GIRARD
The format of the error message changed with this version of Python. This also removes obsolete Python 3 checks.