add status code 400 for api endpoint /events Upstream-commit: f3da980a459c11a35248daa8a6be9919bf65fda2 Component: engine