Hi Xu Liq,
By default as you mentioned from the https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=java the expected http status code are 202 & 400
But as for your case, maybe you can refer to below document.
https://learn.microsoft.com/en-us/graph/errors
I believed not all listed above for Http error code will be returned but i can see couple of potential Http status code like
- 401 - Unauthorized
- 403 - Forbidden
- 404 - Not Found
- 405 - Method Not Allowed
- 406 - Not Acceptable
- 413 - Request Entity Too Large
- 415 - Unsupported Media Type
- 429 - Too Many Requests
- 500 - Internal Server Error
- 503 - Service Unavailable
- 509 - Bandwidth Limit Exceeded
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".