Reimplement custom status class and update all the api endpoints using it.