We're likely going to need a consistent error scheme that the API returns whenever an error occurs.
Some of the errors that can occur:
Invalid ID (for example using "facilities/5/{token}", no facility exists with an id of 5
Nonexistent token
Timed-out token
Not privileged to access info (non-admin token in "facilities/alerts/{token}")
All I can think of right now, but add more if you can think of some.
We're likely going to need a consistent error scheme that the API returns whenever an error occurs. Some of the errors that can occur: Invalid ID (for example using "facilities/5/{token}", no facility exists with an id of 5 Nonexistent token Timed-out token Not privileged to access info (non-admin token in "facilities/alerts/{token}")
All I can think of right now, but add more if you can think of some.