let json return custom failure codes

Usually we use :success , no? Doesn't really matter