add domain constants for network errors
add code to generate a default error block