﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
24491	Nicer formatting of status error codes	Claudius	team	"==== What steps will reproduce the problem?
1. Have the OSM API responding with a 503 status code (e.g. during maintenance)

==== What is the expected result?
The body of the return message to be shown nicely formatted

==== What happens instead?
The raw response code and HTML return DOM is shown in the dialog. Examples of the dialog content:
Example #1 trying to download OSM data from the API during Oct 5th 2025 maintenance window:
**ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN""> <html><head> <title>503 Service Unavailable</title> </head><body> <h1>Service Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> </body></html>>**

Example #2 popping up every few minutes with JOSM open (I guess this is the PM inbox call):
**ResponseCode=503, Error Header=<Database offline for maintenance>**

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:19412
Build-Date:2025-06-03 14:14:26

Identification: JOSM/1.5 (19412 en) Mac OS X 15.7.1
OS Build number: macOS 15.7.1 (24G231)
Memory Usage: 2896 MB / 12288 MB (1877 MB allocated, but free)
Java version: 21.0.7+6-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1512x982x32bpp@120Hz (scaling 2.00×2.00)
Maximum Screen Size: 1512×982
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=19412, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ ColorPlugin (41)
+ buildings_tools (36438)
+ indoorhelper (262)
+ pt_assistant (677)
+ tageditor (36438)
+ turnlanes-tagging (1746100629)
+ wikipedia (441)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportOneClick&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Power_Mapping_Utility_Simple&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/OpenStationMap&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/MastAndTower&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Simple_Indoor_Tagging&zip=1
+ https://github.com/kendzi/Simple3dBuildingsPreset/releases/download/0.9_2018-05-08/s3db-preset.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/TurnLanes&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/LitObjects&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
+ https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip
+ https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- <josm.userdata>/plugins/indoorhelper/resources/sit.mapcss

Last errors/warnings:
- 32778.787 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN"">
- 32778.790 E: Communication with OSM server failed - ResponseCode=503, Error Body=&lt;&lt;!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN""&gt;
- 32974.231 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Header=<Database offline for maintenance>
- 32974.256 E: Communication with OSM server failed - ResponseCode=503, Error Header=&lt;Database offline for maintenance&gt;
- 33019.746 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN"">
- 33019.748 E: Communication with OSM server failed - ResponseCode=503, Error Body=&lt;&lt;!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML 2.0//EN""&gt;
- 33274.292 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Header=<Database offline for maintenance>
- 33274.320 E: Communication with OSM server failed - ResponseCode=503, Error Header=&lt;Database offline for maintenance&gt;
- 33574.288 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Header=<Database offline for maintenance>
- 33574.309 E: Communication with OSM server failed - ResponseCode=503, Error Header=&lt;Database offline for maintenance&gt;
}}}
"	enhancement	new	normal		Core			template_report	
