30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

Response Format<br />

About<br />

API HTTP response messages use standard HTTP response codes to designate high-level status<br />

(success, failure, etc.) and simple XML payload in the response body to provide additional method<br />

specific data or specific error messages.<br />

HTTP Response Codes<br />

Zend Server Web API operations will return standard HTTP response codes in order to indicate overall<br />

success or failure. In case of an error, the HTTP status code may further indicate the nature of the<br />

problem, and a specific error code contained in the response body will indicate the specific nature of the<br />

error.<br />

The following HTTP response codes may be used:<br />

332<br />

200 OK - The operation has completed successfully.<br />

202 Accepted - The operation was accepted and is being processed, but is not complete yet.<br />

4xx - HTTP status codes between 400 and 499 are used to designate a client-side error. For<br />

example, a missing request parameter or an authentication error.<br />

5xx - HTTP status codes between 500 and 599 are used to designate a server-side error. For<br />

example, a temporary locking issue or an unexpected error in the server operation.<br />

Additional information about HTTP response codes for error responses is available in Error Responses,<br />

as well as in the documentation for each method.<br />

HTTP Response Headers<br />

The following HTTP response headers will be included in API responses:<br />

Content-type - Unless stated otherwise, these will be “application/vnd.zend.serverapi+xml;<br />

version=”. For more information about API versions see API Versioning<br />

Negotiation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!