Thank you for reaching out to us. As I understand you are trying to access OneNote using personal Hotmail account via Microsoft Graph.
Wanted to check if you have reviewed the Microsoft Graph permissions for OneNote as per this article https://learn.microsoft.com/en-us/graph/permissions-reference#notes-permissions:~:text=Permission%20scenarios.-,Notes%20permissions,-Delegated%20permissions
Note: There are few permissions in the OneNote section of the above article where Microsoft Account is supported.
Error 40001 states - User or application doesnt have the correct permissions. Reference: https://learn.microsoft.com/en-us/graph/onenote-error-codes#:~:text=The%20user%20or%20application%20does%20not%20have%20the%20correct%20permissions.
For Todo application, reference: https://learn.microsoft.com/en-us/graph/api/resources/todotask?view=graph-rest-1.0
Review the permissions once as per the above article and let me know if the issue still persists.