string(10) "api-errors" API Foutmeldingen | Kortingcity - de marktplaats voor deals
Winkelier plaats uw eigen deal
Ontvang de Kortingcity Deals

API Foutmeldingen

API Foutmeldingen

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.kortingcity.nl/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.kortingcity.nl/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>