Make SMIBHID sensor values return 404 rather than 500 for non-existant/uninitiated/invalid sensors/modules/readings #36
Labels
enhancement
New feature or request
good first issue
Good for newcomers
invalid
This doesn't seem right
404 (NOT FOUND) is likely the correct status rather than 500 (INTERNAL SERVER ERROR)
looks like if you do the following a 404 error is returned correctly. I tested it with a broad try/except but the KeyError looks to be the exception that gets triggered.
Originally posted by @sam57719 in somakeit/smib#276 (comment)
The text was updated successfully, but these errors were encountered: