refine error.h and schemas.h

refine error.h and schemas.h