kmshttpendpoint: Post a message on the bus when an error happens

Change-Id: I184d8b603d5a172dea256d45155d93f65e008bbf