Fix typo in the error message rendering
What does this MR do and why?
Problem
Because of the typo, the endpoint doesn't render the error message.
Solution
Fix typo and add a test to verify the error message.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.