add 400/bad request error handler