Revert "Use a saner error code"

This reverts commit 18d2e3edd5eccb61545a731fffe5e2e9be780a1a.