API errors should be returned in json format
When an API endpoint fails, the result page is the default page generated by django which is helpless for the user
We should return a brief json-formatted message instead. eg:
{"error": "webapp not found"}
{"error": "queue not found"}
...