function formatRequestError formatRequestError(method: string,path: string,error: unknown): string Format an error detail string with request context and error message Parameters method: string path: string error: unknown Return Type string