(#509) add pouch error code back in
(#509) add pouch error code back in