Wrong status code on invalid date of birth


For some invalid identity.date_of_birth values the ‘POST /v1/accounts’ endpoint is returning a 500 HTTP status code instead of a 4xx code.

“1990-01-01” → 200
“01-01-1990” → 422
“1990-13-01” → 500 Shouldn’t this be a 4xx code?


@ionut.banu Thank you for the feedback. It would seem a 422 error would be more appropriate it this case.