Setu-TS
    Preparing search index...

    Function internalServerError

    • Creates a 500 Internal Server Error error.

      Pass the original error as cause so the root cause is preserved in the ES2022 error chain for logging and debugging.

      Parameters

      • message: string

        Human-readable error message

      • Optionalcause: Error

        Optional underlying error forwarded to the cause chain

      Returns HttpError

      A 500 HttpError

      0.1.0