4.1.1 Phase 1: Enforcement
In the following example, the client tries the FolderSync command, which is denied by the server<4> because the server has determined that the client does not have the current policy (as denoted by the X-MS-PolicyKey header). The server returns HTTP 200 (ok) with a global status code in the body of the response of 142.
Request
POST /Microsoft-Server-ActiveSync?User=deviceuser&DeviceId=6F24CAD599A5BF1A690246B8C68FAE8D&DeviceType=PocketPC&Cmd=FolderSync HTTP/1.1 Accept-Language: en-us MS-ASProtocolVersion: 14.0 Content-Type: application/vnd.ms-sync.wbxml X-MS-PolicyKey: 0 User-Agent: ASOM Host: EXCH-B-003 <?xml version="1.0" encoding="utf-8"?> <FolderSync xmlns="FolderHierarchy:"> <SyncKey>0</SyncKey> </FolderSync>
Response
HTTP/1.1 200 OK
Content-Type: application/vnd.ms-sync.wbxml
Date: Mon, 01 May 2006 20:15:15 GMT
Content-Length: 15
<?xml version="1.0" encoding="utf-8"?>
<FolderSync
xmlns="FolderHierarchy:">
<Status>142</Status>
</FolderSync>