catch bad json payload for 400 errors