The HW Blog

Want to be updated? @opencoconut | Feed

You get an Error Code

Bruno Celeste (@brunoceleste)

March 26, 2014 Features

Simple messages are not enough when you want to be accurate, that's why we added a bunch of new error codes for all the APIs.

From now, you will receive an error code for every single errors you will encounter with the Coconut API.

The error messages in JSON and XML reflect this change but shouldn't break your existing code since we just added two new fields.

A typical JSON error:

{"message":"Ping URL is not valid","error_code":10,"status":"error"}

The XML version:

<?xml version="1.0" encoding="UTF-8"?>
<message status="fail" error-code="10">Ping URL is not valid</message>

You can find the full list of error codes in our documentation.



Any Comment? Send us a message on Twitter @opencoconut
If you have questions or feedbacks, you can also contact us via our contact page