grokify / commonchat

CommonChat is an idealized message format with conversion to chat systems such as Glip and Slack.
MIT License
8 stars 2 forks source link

Handle Glip Webhook API Errors #2

Open grokify opened 4 years ago

grokify commented 4 years ago

When a 200 OK response handled, optionally allow client to return 400 status for better downstream handling:

{
  "status":"error",
  "message":"Your request was accepted, however a post was not generated",
  "error":"Invalid Custom payload",
  "validation":[
    "payload.attachments[0].fields[1] should have required property 'value'"
  ]
}