RocketChat / Apps.Rasa

Integration between Rocket.Chat and the RASA Chatbot platform
17 stars 11 forks source link

Handover Endpoint - Throw error when no agents are online #24

Open murtaza98 opened 3 years ago

murtaza98 commented 3 years ago

Fixes #20

Old behaviour:

If the handover fails and no agents were online, the endpoint would not throw any error and would return same 200 OK status code

New Behaviour:

If the handover fails because no agents were online, the endpoint will throw an error Response status code: 500 Response body: { "error": "Handover failed! No agents online" }