add error code to restful mixing class~~
better error handing
asserts manager