Fix error code assignment in raw_parser