send good error codes