Updated constants for error handling