Add function to dissect standard OK/E replies

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>