# IMAP error codes and Microsoft draft deletion fixes

Source: https://developer.nylas.com/docs/changelogs/2026-09-03-imap-error-codes-and-microsoft-draft-fixes/

## Fixed

- **Internal grant-fetch failures on IMAP-hosted grants** now correctly return a `5xx` server error instead of `401 Unauthorized`. If your integration treated `401` from IMAP requests as an invalid-credentials signal, note that some of those responses were actually internal Nylas errors and should be handled (and retried) accordingly.
- **Deleting a draft on a Microsoft Graph grant** now permanently removes it. Previously, a deleted Microsoft draft could remain retrievable.
- **Fetching a deleted Microsoft draft** now correctly returns `404 Not Found`.