Skip to content

Special Error Codes

Kenneth Ma edited this page Sep 10, 2015 · 3 revisions

Special Error Codes

addresses

POST

422: Address already exists

Raised when another address currently already exists for the given location within a bounding box of n by n metres. The current value for n is 111 -- simply round both coordinate values to 3 decimal places to obtain this bounding box.

PATCH

422: Coordinates are read-only

Raised when location field is being changed.

422: Address does not match coordinates within n metres

Raised when specifying the address field with an address geocoded with coordinates within a bounding box of n by n metres in its location field coordinates. The current value for n is 111 -- simply round both coordinate values to 3 decimal places to obtain this bounding box.

apikeys

POST

422: deviceId is faulty

Raised when provided deviceId could not be contacted successfully via GCM.

publicRequestInvites

PATCH

422: Unable to create accepted invite

Raised when unable to find associated Request to add a requestInvite to when the acceptedBy field is specified.

requestInvites

GET

404: Invite is expired

Raised when attempting to access a requestInvite item directly that's expired. Message changes to default afterwards, but retains the 404 error code.

PATCH

404: Invite is expired

Raised when attempting to update a requestInvite that's expired. Message changes to default afterwards, but retains the 404 error code.

422: Cannot change accepted status of an accepted invite; delete Invite if refusing

Raised when accepted is specified, but previous value of accepted is True. Send a DELETE to the item if refusing the invite instead.

DELETE

422: Cannot delete attached invite

Raised when a DELETE is sent to a requestInvite with the value of attached currently set to True.

requests

POST

422: No location history exists

Raised when there is no existing location history for the given user. Can't generate a default destination for the request, so the creation of the request fails.

PATCH

422: Cannot change Invites once attached

Raised when the value of attachedInviteId is not null and inviteIds is specified in the PATCH payload.

422: Unable to attach Invite

Raised when unable to find associated requestInvite item to the specified attachedInviteId ObjectId to attach to.

422: Already attached

Raised when attachedInviteId is not null, but attachedInviteId is specified in the PATCH payload.