HTTP status code corrected when no asset found in asset summary endpoint
@@ -328,7 +328,7 @@ async def asset_all_readings_summary(request):
_readings = connect.get_readings_async()
results = await _readings.query(payload)
if not results['rows']:
- raise web.HTTPNotFound(reason="{} asset_code not found".format(asset_code))
+ raise KeyError("{} asset_code not found".format(asset_code))
# TODO: FOGL-1768 when support available from storage layer then avoid multiple calls
# Find keys in readings
