Error domain and codes made public