Errors

Errors returned - eg. validation issues with information being updated ... are returned with an appropriate HTTP status code, with a standard structure;

Errors with specific fields;

{"error":true,"errors":{"sms_sender_id":["This value is too long. It should have 11 characters or less."]}}

Errors with both a generic form issue (eg. not related to a specific field which was submitted) & specific fields;

{"error":true,"errors":{"#":["Generic form error"], "sms_sender_id":["This value is too long. It should have 11 characters or less."]}}

Authentication issue;

{"error":true,"errors":{"#":"Not logged in"}}