unprocessable
HTTP 422 · code unprocessable
The request is well-formed but its content is not valid.
When Photon sends it
Section titled “When Photon sends it”Sent by handlers through photonerr.UnprocessableEntity(msg), typically after validation.
What the client should do
Section titled “What the client should do”Correct the values named in the message and retry.
Example response
Section titled “Example response”{ "type": "https://photon.agenticmarket.dev/errors/unprocessable", "title": "unprocessable request", "status": 422, "code": "unprocessable"}Match on the code field rather than on title, which is meant for people and may change. See all error codes.