Creates a 500 Internal Server Error. Use for unexpected errors that shouldn't normally occur. Prefer throwing the error directly and letting the global handler catch it.
500 Internal Server Error
Error message (default: "Internal server error")
"Internal server error"
AppError with status 500 and code INTERNAL_ERROR
AppError
500
INTERNAL_ERROR
Creates a
500 Internal Server Error. Use for unexpected errors that shouldn't normally occur. Prefer throwing the error directly and letting the global handler catch it.