internal_error
HTTP 500 · code internal_error
The server failed while handling the request.
When Photon sends it
Section titled “When Photon sends it”Sent when a handler panics before writing a response, or returns photonerr.Internal(cause) or an error that is not a *photonerr.Error. The cause is logged for the operator and never sent to the client.
What the client should do
Section titled “What the client should do”Retry later; if it persists, report it with the time of the request.
What the server owner can do
Section titled “What the server owner can do”Check the server log: Photon logs the cause and, for panics, the stack.
Example response
Section titled “Example response”{ "type": "https://photon.agenticmarket.dev/errors/internal_error", "title": "internal server error", "status": 500, "code": "internal_error"}Match on the code field rather than on title, which is meant for people and may change. See all error codes.