diff --git a/src/GeoDataCollection.js b/src/GeoDataCollection.js
index <HASH>..<HASH> 100644
--- a/src/GeoDataCollection.js
+++ b/src/GeoDataCollection.js
@@ -905,9 +905,10 @@ GeoDataCollection.prototype._viewMap = function(request, layer) {
                 url: url,
                 layers : encodeURIComponent(layerName),
                 parameters: {
-                    'format':'image/png',
-                    'transparent':'true',
-                    'styles': ''
+                    format: 'image/png',
+                    transparent: true,
+                    styles: '',
+                    exceptions: 'application/vnd.ogc.se_xml'
                 },
                 proxy: proxy
             });
@@ -928,7 +929,8 @@ GeoDataCollection.prototype._viewMap = function(request, layer) {
             provider = new L.tileLayer.wms(server, {
                 layers: layerName,
                 format: 'image/png',
-                transparent: true
+                transparent: true,
+                exceptions: 'application/vnd.ogc.se_xml'
             });
         }
         provider.setOpacity(0.6);
Ask WMS servers to provide errors as XML.

Instead of returning a "no data" image.