canceled
HTTP 499 · code canceled
The client closed the request before the server answered.
When Photon sends it
Section titled “When Photon sends it”Recorded through photonerr.Canceled() when the request context ends because the client left. 499 is nginx’s “client closed request”; it appears in logs and metrics, and a client that has gone never receives it.
What the client should do
Section titled “What the client should do”Nothing: the client already left.
Example response
Section titled “Example response”{ "type": "https://photon.agenticmarket.dev/errors/canceled", "title": "canceled", "status": 499, "code": "canceled"}Match on the code field rather than on title, which is meant for people and may change. See all error codes.