novem-code / novem-python

python command-line interface for interacting with the novem.no data visualisation platform
Other
2 stars 3 forks source link

Provide better feedback on incorrect vis id #39

Open sondove opened 1 month ago

sondove commented 1 month ago

The novem API responds with 404 both for endpoints that doesn't exist and when you're not authenticated. The current error reporting is a bit unintuitive if you're logged in but trying to operate on a non-existant visualisation.

I suggest introducing an HTTP header indicating authenticated status and using that to provide better error messages to the cli user