Error Handling
const document = await ctx.document("document_path");
if(document.success === false){
console.error(document.error.error); // Error message
console.error(document.error.message); // Detailed error message
console.error(document.error.statusCode); // HTTP status code
}Last updated
Was this helpful?