use error class to handle errors
[#83558622]
add record invalid error handler

[#83465698]
register service
[#83465698]
add space
register user endpoint
[#83465698]