HTTPException, which serialises as:
422 with a list:
loc walks from the request part inwards, so it tells you exactly which nested field failed. Agent config validation failures also arrive as 422, but with a single string in detail rather than a list, because they are raised by hand.
Status codes
A
404 on a resource you know exists usually means your token’s active organisation is not the one that owns it. Swap with POST /api/v1/users/switch-organisation and retry.