more granular numeric status in output headers

removed internal state INTERNAL_EROR