Renamed ifNotOk() and throwIfNotOk() methods to onError() and throwOnError()