Updated error codes to reflect changes from the BareConnection library.