Make json error on empty response more specific