Warning: session_start() [function.session-start]: open(/home/content/61/9499561/tmp/sess_tejsfrp4rakk7nut82mo7c4040, O_RDWR) failed: No such file or directory (2) in /home/content/61/9499561/html/index.php on line 45
API Errors | Badoostan

Save 50-90% off!

Delivered directly to your inbox.

INWashington DC

Confirm Your City

Enter your email

API Errors

Error Response Format

All error responses contain at least the top level error object with httpCode and message

  • httpCode - HTTP status code
  • message - Human readable message indicating why the api request failed

Sample Invalid JSON Requests

GET http://www.badoostan.com/api?city=themoon&client_id=5cd27f66bac85fb6a1a1ee9e1b7f311d53811c74&format=json

Sample JSON Error Response

HTTP/1.1 400 Bad Request { "error": { "httpCode":400, "message":"Unable to find city" } }

Sample Invalid XML Request

GET http://www.badoostan.com/api?city=themoon&client_id=5cd27f66bac85fb6a1a1ee9e1b7f311d53811c74&format=xml

Sample XML Error Response

HTTP/1.1 400 Bad Request
<?xml version="1.0"?>
<response>
  <error>
    <httpCode>
400
 </httpCode>
    <message>
Unable to find city
</message>
  </error>
</response>

Warning: Unknown: open(/home/content/61/9499561/tmp/sess_tejsfrp4rakk7nut82mo7c4040, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0