Added tests of HTTP message on errors