Home | Index

Address Book XML/JSON API Developer Guide

Examples

The following examples assume that the Request failed because of the "user unavailable error". This error is caused by a temporary race condition or abusive use of the search service. This is considered to be a temporary condition; therefore the Response contains a retry-after field set to 600 seconds, or 10 minutes.

XML

HTTP/1.1 503 Server Temporarily Unavailable
Date: Thu, 03 May 2007 04:56:45 GMT
P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Retry-After: 600
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE error SYSTEM "http://l.yimg.com/us.yimg.com/lib/pim/r/abook/xml/2/pheasant.dtd">
<error>
 <retry-after>600</retry-after>
 <code>-50302</code>
 <user-message>There was a temporary problem accessing your address book. Please try again in 10 minutes. If you continue to see this problem, please notify customer support. Thank you.</user-message>
 <debug-message>The addresbook is currently not available (ERROR_USER_UNAVAILABLE -50302)</debug-message>
</error>

JSON

HTTP/1.1 503 Server Temporarily Unavailable
Date: Thu, 03 May 2007 04:56:49 GMT
P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Retry-After: 600
Connection: close
Content-Type: text/javascript; charset=us-ascii

{"retry_after":600,
 "type":"error",
 "code":-50302,
 "user_message":"There was a temporary problem accessing your address book. Please try again in 10 minutes. If you continue to see this problem, please notify customer support. Thank you.",
 "debug_message":"The addresbook is currently not available (ERROR_USER_UNAVAILABLE -50302)"
}