Error response with multiple errors

Hi Team :slight_smile:

We have a use case where we need to return multiple error messages in the response and we see in the documentation that Vault returns an array of strings- https://www.vaultproject.io/api#error-response.

How can I use it? can you supply an example of how to return multiple error messages?

Thanks

Any Idea? Can someone assist?

Hi @naama-ibm are you building a plugin for Vault?

In my day-to-day usage I’ve generally only seen single valued error messages such as “missing client token” and “invalid request” otherwise I’d point you to an example if I knew of one.