Add /set function for REST access
Send a proper HTTP response