added standard errror codes to mercury