Hi
We are implementing a resource where the client can GET a specific person by social security number - but in some cases the system may contain more than one person matching the SSN which is considered an error in the dataset.
When the client does a GET by the SSN it will receive a redirect to a relevant person resource using status code 303 See Other.
But what should the server return when multiple persons are found? It is not a client error so 400 Bad Request seems inapropriate. We could return 500 Internal Server Error - but then the client developers will call us and ask why the server failed.
The 300 (Multiple Choices) status code indicates that the target
resource has more than one representation
The RFC talks about multiple representations of the same resource - but we have multiple resources, not multiple representations of the same resource. Would it be correct to use status code 300 anyway?
What would you recommend?
Kind regards, Jørn