440 Login Time-out (Microsoft)
Client error response defined by learn.microsoft.com.
Written and maintained by Ben Ennis
Last reviewed November 23, 2026 · How we verify this
Common causes at a glance
- An idle OWA or forms-auth session that passed its timeout
- An expired or misconfigured Exchange Server Auth (OAuth) certificate
- Load balancers moving a session between servers on different builds
- SSL offloading that strips the Secure flag from SameSite=None cookies
Reproduce it
curl -si https://mail.example.com/owa/ -b 'cadata=stale' | head -1What 440 Login Time-out (Microsoft) means
A 440 says “you were signed in, and that session is no longer good”. That is different from 401, which means no valid credentials arrived at all, and from 403, which means the user is known but not allowed. For a single user after an idle tab, it is routine and a fresh sign-in fixes it. When it hits every user at once, or straight after a successful sign-in, the session cookies are being rejected on the server side and a sign-in won’t help.
There is no RFC
440 is unassigned in the IANA registry, and we haven’t found a formal
Microsoft definition for it. The documentation is operational: Microsoft Q&A threads on
Exchange 2019 and Exchange 2016 OWA show it after
reply or forward actions and on blank OWA and ECP pages. Microsoft’s troubleshooting
article on an expired Exchange OAuth certificate covers a related
sign-in failure with the check to run. In Exchange Online, the idle sign-out window is set
by ActivityBasedAuthenticationTimeoutInterval on
Set-OrganizationConfig.
What actually causes it
The pattern tells you which one you have. One user, after lunch, is the
timeout working as designed. Everyone at once after a certificate anniversary points at
the Auth certificate. Failures only on some clicks, such as Reply or Forward, usually mean
requests landing on a different server than the one that issued the cookie, or a browser
discarding a cookie that a TLS-offloading proxy delivered without the Secure flag.
Turn on session affinity or bring every server to the same cumulative update before changing
authentication settings.
How to debug it
Reproduce once and match the timestamp in the IIS logs and the
HttpProxy\Owa logs on each Exchange server to see which server answered 440. Then
check the Auth certificate in the Exchange Management Shell:
(Get-AuthConfig).CurrentCertificateThumbprint | Get-ExchangeCertificate | Format-List Subject, NotAfter
Working examples
curl
# Follow the OWA sign-in redirects and print each status line.
curl -sIL https://mail.example.com/owa/ | grep -E '^HTTP'
# Send a stale session cookie to see the 440 directly.
curl -si -b 'cadata=stale' https://mail.example.com/owa/ | head -1
Python (requests)
import requests
s = requests.Session()
r = s.get("https://mail.example.com/owa/", timeout=10)
if r.status_code == 440:
print("session expired; sign in again and retry")
Node (fetch)
const res = await fetch("https://mail.example.com/owa/", {
headers: { cookie: "cadata=stale" },
redirect: "manual",
});
if (res.status === 440) console.log("login time-out: re-authenticate");Reference and tooling
The authoritative list of assigned status codes is theIANA HTTP Status Code Registry. For a searchable copy with the semantics summarised, use theHTTP status code reference on this site. To see exactly what a server is sending, theheader inspector shows the raw status line and response headers, and thecurl builder assembles the request flags for you.
Related reading
- Every HTTP status code, and when it shows up
The wider map: which codes you actually meet in production, and the pairs everyone confuses.
Other 4xx codes
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 (Unused)
- 419 Page Expired
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 424 Failed Dependency
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 430 Shopify Security Rejection
- 431 Request Header Fields Too Large
- 444 No Response
- 449 Retry With (Exchange ActiveSync)
- 451 Unavailable For Legal Reasons
- 460 Client Closed Connection (AWS ALB)
- 463 Too Many Forwarded IPs (AWS ALB)
- 464 Incompatible Protocol Version (ALB)
- 494 Request Header Too Large
- 495 SSL Certificate Error
- 496 SSL Certificate Required
- 497 HTTP Request Sent to HTTPS Port
- 498 Invalid Token (Esri ArcGIS)
- 499 Client Closed Request