Added default error handling (plain HTML page with details of the error). Partial fix for WS-77.