Closed tom-schier closed 2 years ago
Thank you for getting in touch with us to raise this issue.
We have replicated the issue using steps provided.
We have logged the issue and will include a fix in a future release.
The fix for this issue has now been merged in to the main branch. https://github.com/ConsumerDataRight/mock-data-holder/pull/37
Describe the bug The standard stipulates that if a http error code 400 is returned the body should contain an error object.
To Reproduce Steps to reproduce the behavior:
Expected behaviour If a 400 code is returned the body should have an error object
Screenshots
Additional context If you hit this endpoint and change the x-v version to a higher number, the result is as expected. That is a 406 is returned with an appropriate error message. If you hit that endpoint with an invalid access token, the result is as expected, ie a 401 is returned