Report correct error code for segment not presnet