throw 400 in case of malformed paths