Error Response
All API errors follow a consistent format:
{
// Serialized error object for debugging purposes
// Advanced users can use this to debug issues
error?: any;
// UX-friendly error message that can be displayed to the user
// Always present if error occurs
errorMessage: string;
// Authentication error flag
// Present if the user is not authenticated
unauthorized?: boolean;
}
Last updated