fail on bad http status codes in json handler