﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15690	Extract error message when fetching a tile from a Tomcat server	Don-vip	team	"When a WMS tile requests fails with an HTTP error, you can get this kind of error message if the server runs Tomcat:

{{{
<html><head><title>Apache Tomcat/DGFiP - Rapport d''erreur</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>Etat HTTP 400 - La commune demandée n'existe pas ou n'est pas accessible.</h1><HR size=""1"" noshade=""noshade""><p><b>type</b> Rapport d''état</p><p><b>message</b> <u>La commune demandée n'existe pas ou n'est pas accessible.</u></p><p><b>description</b> <u>La requête envoyée par le client était syntaxiquement incorrecte.</u></p><HR size=""1"" noshade=""noshade""><h3>Apache Tomcat/DGFiP</h3></body></html>
}}}

There is valuable information in this example (the ""message"" displayed), but JOSM currently only displays the error code (HTTP 400).

It would be useful to extract the message from HTTP answer.
The page is translated, the Tomcat code producing this page is [https://github.com/apache/tomcat/blob/17fdaef177202e09e5e111cbaa3f45c15f167142/java/org/apache/catalina/valves/ErrorReportValve.java#L213 here]."	enhancement	closed	normal	17.12	Core imagery		fixed	wms tomcat	
