Index: trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java	(revision 18801)
+++ trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java	(revision 18802)
@@ -331,8 +331,9 @@
      */
     public static void explainGenericHttpException(OsmApiException e) {
-        String body = e.getErrorBody();
-        Object msg = null;
+        final String body = e.getErrorBody();
+        final String msg;
         if (e.isHtml() && body != null && body.startsWith("<") && body.contains("<html>")) {
             // use html string as is
+            msg = body;
         } else {
             msg = ExceptionUtil.explainGeneric(e);
