Handle all errors returned by the Realm Management backend instead of returning 500 #683
Labels
app:realm_management_api
This issue or pull request is about astarte_realm_management_api application
Currently Realm Management API does not handle many errors that can be returned, see e.g. this, this, or this, failing instead with "500 Internal Server Error", which does not help the user much.
The way to handle those is adding a clause to the relevant controller (e.g. TriggerController for the ones linked above) and a render function in the relative View.
Once the clause is added, this call actually succeeds (since the error atom is now existing in the application) and the error is correctly rendered.
The text was updated successfully, but these errors were encountered: