Open andig opened 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.
setStatus
setCurrent
Set
setStatus
andsetCurrent
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.