fixed http status codes/json messages