This PR unifies error messages across the Middleware. It ensures that each time the response is given back to the user, it has the same structure.
Fixes #265
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] This change requires a documentation update
What has been changed?
Fix: different error message formats across the system
Doc: updated openapi specification
Example:
Breaking: Chaged the database engine from Redis to PostgreSQL
Feature: Robot can request the Edge switchover for a specified instance
Fix: Robot topics were not retrieved from DB
Doc: Added Edge Switchover mechanism description
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] Retrieved API results for different error responses: 400, 404, 500 etc.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
This PR unifies error messages across the Middleware. It ensures that each time the response is given back to the user, it has the same structure.
Fixes #265
Type of change
What has been changed?
Example:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: