CurtRod / SimpleEVSE-WiFi

Brings EVSE WB/DIN into your WiFi
https://www.evse-wifi.de
78 stars 31 forks source link

Simplify API usage by returning matching HTTP status codes #47

Open andig opened 4 years ago

andig commented 4 years ago

Set setStatus and setCurrent commands always return HTTP 200, even in case of failure (https://github.com/CurtRod/SimpleEVSE-WiFi/blob/2104dec5209eca9c0a3275c3120dc27320290686/src/main.cpp#L1558). It would be great to return HTTP 400 in that case to make usage compatible with typical REST API patterns and client libraries.