HTTP API lockState and the unlatched state

I took the chance to improve my feature request: