449 Retry With (Exchange ActiveSync)
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
- A new device that has never provisioned with the server
- A policy change on the server that invalidated the device's policy key
- A scheduled policy refresh interval expiring
- A pending remote wipe the device must pick up through Provision
Reproduce it
curl -si -X POST 'https://mail.example.com/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=u&DeviceId=d1&DeviceType=test' -H 'MS-ASProtocolVersion: 12.1' -u user | head -1What 449 Retry With (Exchange ActiveSync) means
449 is a provisioning prompt, not a failure. The device either has no policy key, holds an outdated one, or the server wants it to pick up a policy refresh or a remote wipe. Newer clients that speak ActiveSync 14.0 and later get the same news as a status value in the response body instead, such as 142 DeviceNotProvisioned or 144 InvalidPolicyKey. Only older protocol versions see it as an HTTP status.
Defined in Microsoft’s protocol docs, not an RFC
The MS-ASCMD common status codes table maps status
values 140 through 144 to HTTP 449 when protocol version 2.5, 12.0 or 12.1 is used.
MS-ASPROV specifies the Provision command the client must send, and
MS-ASHTTP covers the transport and the MS-ASProtocolVersion header.
Microsoft’s provisioning interoperability guidance adds client
behaviour: provision immediately on a 449. If the 449s keep coming, suggest the user
contact an administrator, and then try provisioning about once an hour.
What actually causes it
A single 449 followed by a successful Provision and a normal sync is the protocol working. A loop of 449s means the device can’t satisfy the policy, for example a device encryption or password requirement it doesn’t support, so every Provision attempt ends with the same prompt. Check the mobile device mailbox policy assigned to the user and whether the device’s ActiveSync version is new enough to report the specific status value instead.
How to debug it
Pull the device’s ActiveSync log or the server’s IIS log for
/Microsoft-Server-ActiveSync and look for the request sequence. A healthy flow is
449, then Cmd=Provision, then 200. Then inspect the device partnership:
Get-MobileDeviceStatistics -Mailbox [email protected] | Format-List DeviceModel, LastPolicyUpdateTime, DevicePolicyApplicationStatus
Working examples
curl
# Old protocol version without a policy key: expect 449.
curl -si -X POST -u "$USER" \
-H 'MS-ASProtocolVersion: 12.1' -H 'Content-Type: application/vnd.ms-sync.wbxml' \
"https://mail.example.com/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=$USER&DeviceId=test01&DeviceType=curl" | head -1
Python (requests)
import requests
r = requests.post(
"https://mail.example.com/Microsoft-Server-ActiveSync",
params={"Cmd": "FolderSync", "User": user, "DeviceId": "test01", "DeviceType": "py"},
headers={"MS-ASProtocolVersion": "12.1"},
auth=(user, password), timeout=15,
)
if r.status_code == 449:
print("send Provision, store the new policy key, then retry")
Node (fetch)
const res = await fetch(url, {
method: "POST",
headers: { "MS-ASProtocolVersion": "12.1", authorization: basicAuth },
});
if (res.status === 449) console.log("provision required before retrying");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
- 440 Login Time-out (Microsoft)
- 444 No Response
- 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