Hello Everyone,
I am currently developing my first driver, and I need some help with handling errors in my HTTP-based protocol. The API documentation defines an error response schema with only two parameters:
code
(integer, optional)message
(string, optional)
However, there is no specific description of what these error codes or messages represent. Additionally, the default error response is labeled as "Invalid request" without further details.
My Questions:
-
How should I define this error structure in my protocol?
- What parameters do I need to capture from the API response?
- How should I structure error logging and handling?
-
How should I implement this in my protocol (from parameter to trigger to QAction)?
- What’s the best way to handle this in a QAction or a trigger?
- Should I create a dedicated error-handling QAction?
Any guidance on how to structure this properly would be greatly appreciated. Thanks in advance!