Skip to content

internal_error

HTTP 500 · code internal_error

The server failed while handling the request.

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.

Retry later; if it persists, report it with the time of the request.

Check the server log: Photon logs the cause and, for panics, the stack.

{
"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.