decodeErrorMessageFromRequest function attempts to extract a meaningful error message from data or response objects, checking various properties in a specific order. If no valid error message is found, it returns a default message: "Missing error message".ts
import { decodeErrorMessageFromRequest } from "@arkyn/server";
any): The data object that may contain error information.Response): The response object that may contain a statusText.string): The decoded error message or a default message.