Do not write 404 as a response to all action/event requests (#12056)

Change-Id: I2b820396fc1ccfeb0eefec4456f920a410068ec2