diff --git a/index.js b/index.js
index ec01ee9a819af089c3b2d194d8454995eaf7c738..9b34dadf52e3e019a560b93211c5111b22ed4601 100644
--- a/index.js
+++ b/index.js
@@ -313,7 +313,8 @@ async function checkConsentForLoadCurve(
     } else if (err.statusCode === 403 || err.code === 403) {
       log('info', 'No consent for load curve')
       return false
-    } else if (err.statusCode === 404 || err.code === 404) {
+    } else if ((err.statusCode === 404 || err.code === 404) &&
+      err.message.search('no_data_found') > 0) {
       // log('info', 'Handling half-hour error on connection')
       throw 'halffffffffff'
     } else {