nutechsoftware / alarmdecoder-webapp

Web application for interfacing with the AlarmDecoder family of devices.
MIT License
49 stars 50 forks source link

custom notifications: 2xx responses are successful #57

Closed ralfonso closed 5 years ago

ralfonso commented 5 years ago

This is in line with the HTTP spec, which states that any 2xx response equals a successful call. https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success.

Specifically, I have a custom notification endpoint that forwards a message onto an MQTT broker. It responds with 202 Accepted to indicate that the forwarding is async.