Closed jschuurk-kr closed 1 month ago
This should never happen during normal user interaction. I'm considering removing this from the user-facing validation logic and returning a 422 error status code from the backend instead.
This should never happen during normal user interaction. I'm considering removing this from the user-facing validation logic and returning a 422 error status code from the backend instead.
We could technically do the same for the OutOfRange error as well, since the same statement rings true for that one.
When the backend response contains an
IncorrectCandidatesList
error, this is not shown in the frontend.This error happens when a data entry request for a polling station contains lists or candidates that don't match the election data in the backend.
response body for mock in test: