API

Errors

Overview

Dropmark uses conventional HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the info provided by the client, and codes in the 5xx range indicate an error with Dropmark’s servers.

Error format

Name Type Desc
code String Short string describing the kind of error that occurred
message String A user-friendly message providing more details about the error. These can be shown to the user.

Response

Status: 400 Bad Request
{
  "code": "location_invalid",
  "message": "Invalid latitude or longitude"
}