preferably by copying the error handling framework from backend
preferably by copying the error handling framework from backend