method.ambiguous
The method address matches several methods
| Type | https://mthds.ai/errors/method.ambiguous |
| Family | method: The method as written, the validation vocabulary included. |
| Domain | input: the caller acts, by changing the request or its inputs |
| Retry | no: repeating the operation fails the same way |
| HTTP status | 422 |
| Raised as | a problem document, sent as the body of an HTTP response or kept in a run's record |
What it means
The address, the name or the directory matches several packages or installed methods.
What to do
Pick one of params.candidates, and name it by an address that matches it alone.
Next steps
A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.
| Reader | Kind | Detail |
|---|---|---|
| The domain's actor | change_input |
Name one of the matching methods by an address that matches it alone, then send the request again. |
| Any other reader | change_input |
Pass this to the caller, who must name one of the matching methods unambiguously. |
Detail
The problem's detail is written from this template, filled with the occurrence's parameters:
The method address '
{method_ref}' matches several methods:{candidates}.
Parameters
Every parameter is present on every occurrence of the code.
| Name | Type | Description |
|---|---|---|
method_ref |
identifier |
The method address, name or directory the request gives. |
candidates |
list of identifier |
The methods the address matches. |
See also
- Error Registry, which describes the members of this page
- Error Codes, every code of the core registry